aboutsummaryrefslogtreecommitdiff
path: root/telegram/commands.go
diff options
context:
space:
mode:
Diffstat (limited to 'telegram/commands.go')
-rw-r--r--telegram/commands.go7
1 files changed, 1 insertions, 6 deletions
diff --git a/telegram/commands.go b/telegram/commands.go
index fbed7cd..e8586d8 100644
--- a/telegram/commands.go
+++ b/telegram/commands.go
@@ -461,12 +461,7 @@ func (c *Client) ProcessChatCommand(chatID int64, cmdline string) (string, bool)
return "No error, but chat is nil", true
}
- gateway.SendPresence(
- c.xmpp,
- c.jid,
- gateway.SPFrom(strconv.FormatInt(chat.Id, 10)),
- gateway.SPType("subscribe"),
- )
+ c.subscribeToID(chat.Id, chat)
// join https://t.me/publichat
case "join":
if len(args) < 1 {