diff options
author | Bohdan Horbeshko <bodqhrohro@gmail.com> | 2023-03-05 11:00:53 +0300 |
---|---|---|
committer | Bohdan Horbeshko <bodqhrohro@gmail.com> | 2023-03-05 11:00:53 +0300 |
commit | 4a5b83dff5c568871d5624202e2ee27e5d0de242 (patch) | |
tree | 05360ccd21770b830c29ebaacf6ef00787ad1a68 /telegram/connect.go | |
parent | 6e32c62f8dac5ccc97dd0a6067965ba2689f3c86 (diff) |
Show XEP-0461 replies from Telegram
Diffstat (limited to 'telegram/connect.go')
-rw-r--r-- | telegram/connect.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/telegram/connect.go b/telegram/connect.go index b4957b1..2633980 100644 --- a/telegram/connect.go +++ b/telegram/connect.go @@ -219,20 +219,20 @@ func (c *Client) interactor() { if c.Session.Login != "" { c.authorizer.PhoneNumber <- c.Session.Login } else { - gateway.SendMessage(c.jid, "", "Please, enter your Telegram login via /login 12345", "", c.xmpp) + gateway.SendServiceMessage(c.jid, "Please, enter your Telegram login via /login 12345", c.xmpp) } // stage 1: wait for auth code case client.TypeAuthorizationStateWaitCode: log.Warn("Waiting for authorization code...") - gateway.SendMessage(c.jid, "", "Please, enter authorization code via /code 12345", "", c.xmpp) + gateway.SendServiceMessage(c.jid, "Please, enter authorization code via /code 12345", c.xmpp) // stage 1b: wait for registration case client.TypeAuthorizationStateWaitRegistration: log.Warn("Waiting for full name...") - gateway.SendMessage(c.jid, "", "This number is not registered yet! Please, enter your name via /setname John Doe", "", c.xmpp) + gateway.SendServiceMessage(c.jid, "This number is not registered yet! Please, enter your name via /setname John Doe", c.xmpp) // stage 2: wait for 2fa case client.TypeAuthorizationStateWaitPassword: log.Warn("Waiting for 2FA password...") - gateway.SendMessage(c.jid, "", "Please, enter 2FA passphrase via /password 12345", "", c.xmpp) + gateway.SendServiceMessage(c.jid, "Please, enter 2FA passphrase via /password 12345", c.xmpp) } } } |