aboutsummaryrefslogtreecommitdiff
path: root/telegram/commands.go
diff options
context:
space:
mode:
Diffstat (limited to 'telegram/commands.go')
-rw-r--r--telegram/commands.go8
1 files changed, 2 insertions, 6 deletions
diff --git a/telegram/commands.go b/telegram/commands.go
index c4b5988..19fd655 100644
--- a/telegram/commands.go
+++ b/telegram/commands.go
@@ -185,12 +185,8 @@ func keyValueString(key, value string) string {
}
func (c *Client) unsubscribe(chatID int64) error {
- return gateway.SendPresence(
- c.xmpp,
- c.jid,
- gateway.SPFrom(strconv.FormatInt(chatID, 10)),
- gateway.SPType("unsubscribed"),
- )
+ args := gateway.SimplePresence(chatID, "unsubscribed")
+ return c.sendPresence(args...)
}
func (c *Client) sendMessagesReverse(chatID int64, messages []*client.Message) {