aboutsummaryrefslogtreecommitdiff
path: root/telegram/commands.go
diff options
context:
space:
mode:
authorBohdan Horbeshko <bodqhrohro@gmail.com>2023-03-15 00:16:02 +0300
committerBohdan Horbeshko <bodqhrohro@gmail.com>2023-03-15 00:16:02 +0300
commit90807b2d9e0565629a913d3b28b09c5fc9d746e6 (patch)
tree80c56bc83a926d2e0573f58a5786cd964b91775f /telegram/commands.go
parent7bd165a738d6c39d2f9e530c67118f8c639ffb0b (diff)
Convert XEP-0461 replies to Telegram
Diffstat (limited to 'telegram/commands.go')
-rw-r--r--telegram/commands.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/telegram/commands.go b/telegram/commands.go
index 943d071..160e486 100644
--- a/telegram/commands.go
+++ b/telegram/commands.go
@@ -488,7 +488,7 @@ func (c *Client) ProcessChatCommand(chatID int64, cmdline string) (string, bool)
return "Last message is empty", true
}
- content := c.ProcessOutgoingMessage(0, rawCmdArguments(cmdline, 0), "")
+ content := c.ProcessOutgoingMessage(0, rawCmdArguments(cmdline, 0), "", 0)
if content != nil {
c.client.EditMessageText(&client.EditMessageTextRequest{
@@ -505,7 +505,7 @@ func (c *Client) ProcessChatCommand(chatID int64, cmdline string) (string, bool)
return "Not enough arguments", true
}
- content := c.ProcessOutgoingMessage(0, rawCmdArguments(cmdline, 0), "")
+ content := c.ProcessOutgoingMessage(0, rawCmdArguments(cmdline, 0), "", 0)
if content != nil {
_, err := c.client.SendMessage(&client.SendMessageRequest{
@@ -584,7 +584,7 @@ func (c *Client) ProcessChatCommand(chatID int64, cmdline string) (string, bool)
}
}
- content := c.ProcessOutgoingMessage(0, rawCmdArguments(cmdline, 1), "")
+ content := c.ProcessOutgoingMessage(0, rawCmdArguments(cmdline, 1), "", 0)
if content != nil {
_, err := c.client.SendMessage(&client.SendMessageRequest{