aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--telegram/connect.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/telegram/connect.go b/telegram/connect.go
index f1b3dc5..478f5a3 100644
--- a/telegram/connect.go
+++ b/telegram/connect.go
@@ -130,7 +130,7 @@ func (c *Client) Disconnect() {
// TODO: send unavailable presence to cached chats
- c.client.Stop()
+ c.client.Destroy()
c.online = false
}