aboutsummaryrefslogtreecommitdiff
path: root/telegram/client.go
diff options
context:
space:
mode:
authorbodqhrohro <bodqhrohro@gmail.com>2019-11-25 22:42:11 +0300
committerbodqhrohro <bodqhrohro@gmail.com>2019-11-25 22:42:11 +0300
commita89629ab20c7a3176a70cda49b1dac44a561f935 (patch)
treeea151aaec1c48a0b4d85a800ec377076763d5165 /telegram/client.go
parentd6f6207ebb3d5256256a7810a3d3d0bdc8ba04a5 (diff)
Implement an own authorizer
Diffstat (limited to 'telegram/client.go')
-rw-r--r--telegram/client.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/telegram/client.go b/telegram/client.go
index c8187fc..072f4b9 100644
--- a/telegram/client.go
+++ b/telegram/client.go
@@ -35,7 +35,7 @@ func stringToLogConstant(c string) int32 {
// Client stores the metadata for lazily invoked TDlib instance
type Client struct {
client *client.Client
- authorizer *client.ClientAuthorizerType
+ authorizer *clientAuthorizer
xmpp *xmpp.Component
jid string
parameters *client.TdlibParameters
@@ -93,7 +93,7 @@ func updateHandler(tdlibClient *client.Client) {
for update := range listener.Updates {
if update.GetClass() == client.ClassUpdate {
- fmt.Printf("%#v", update)
+ fmt.Printf("%#v\n", update)
}
}
}