diff options
author | bodqhrohro <bodqhrohro@gmail.com> | 2019-11-25 22:42:11 +0300 |
---|---|---|
committer | bodqhrohro <bodqhrohro@gmail.com> | 2019-11-25 22:42:11 +0300 |
commit | a89629ab20c7a3176a70cda49b1dac44a561f935 (patch) | |
tree | ea151aaec1c48a0b4d85a800ec377076763d5165 /telegram/client.go | |
parent | d6f6207ebb3d5256256a7810a3d3d0bdc8ba04a5 (diff) |
Implement an own authorizer
Diffstat (limited to 'telegram/client.go')
-rw-r--r-- | telegram/client.go | 4 |
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) } } } |