diff options
Diffstat (limited to 'telegram/commands.go')
-rw-r--r-- | telegram/commands.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/telegram/commands.go b/telegram/commands.go index 0df64c1..4b0ee13 100644 --- a/telegram/commands.go +++ b/telegram/commands.go @@ -155,7 +155,7 @@ func (c *Client) usernameOrIDToID(username string) (int64, error) { // ProcessTransportCommand executes a command sent directly to the component // and returns a response -func (c *Client) ProcessTransportCommand(cmdline string) string { +func (c *Client) ProcessTransportCommand(cmdline string, resource string) string { cmd, args := parseCommand(cmdline) switch cmd { case "login", "code", "password": @@ -173,7 +173,7 @@ func (c *Client) ProcessTransportCommand(cmdline string) string { if wasSessionLoginEmpty && c.authorizer == nil { go func() { - err := c.Connect() + err := c.Connect(resource) if err != nil { log.Error(errors.Wrap(err, "TDlib connection failure")) } |