aboutsummaryrefslogtreecommitdiff
path: root/telegram/commands.go
diff options
context:
space:
mode:
authorBohdan Horbeshko <bodqhrohro@gmail.com>2022-02-06 16:25:46 +0300
committerBohdan Horbeshko <bodqhrohro@gmail.com>2022-02-06 16:25:46 +0300
commit5a48600b7af0a29e136348f0b96be6a014ced9f9 (patch)
tree2a43d2d5c8ce60d9d56259e9bbf23bafda95e9b7 /telegram/commands.go
parent9d84965e8bd22be4ed2acb549f12d43ca43cfc50 (diff)
The Proper Subscriptions Filter
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 {