diff options
author | Bohdan Horbeshko <bodqhrohro@gmail.com> | 2023-06-04 03:25:00 +0300 |
---|---|---|
committer | Bohdan Horbeshko <bodqhrohro@gmail.com> | 2023-06-04 03:25:00 +0300 |
commit | a5c90340ad2da16a68ddcbfa3d9573f0664067ca (patch) | |
tree | d2870a072a61392cc81a6433be9c9f4d0533a7eb /telegram/commands.go | |
parent | 9a84e9a8b6b7a6f953301e54f19cdf4be73592e1 (diff) |
Refactor ProcessOutgoingMessage
Diffstat (limited to 'telegram/commands.go')
-rw-r--r-- | telegram/commands.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/telegram/commands.go b/telegram/commands.go index 59fe1c7..f36108a 100644 --- a/telegram/commands.go +++ b/telegram/commands.go @@ -498,7 +498,7 @@ func (c *Client) ProcessChatCommand(chatID int64, cmdline string) (string, bool) return "Last message is empty", true } - content := c.ProcessOutgoingMessage(0, rawCmdArguments(cmdline, 0), "", "", 0) + content := c.PrepareOutgoingMessageContent(rawCmdArguments(cmdline, 0)) if content != nil { c.client.EditMessageText(&client.EditMessageTextRequest{ @@ -515,7 +515,7 @@ func (c *Client) ProcessChatCommand(chatID int64, cmdline string) (string, bool) return "Not enough arguments", true } - content := c.ProcessOutgoingMessage(0, rawCmdArguments(cmdline, 0), "", "", 0) + content := c.PrepareOutgoingMessageContent(rawCmdArguments(cmdline, 0)) if content != nil { _, err := c.client.SendMessage(&client.SendMessageRequest{ @@ -594,7 +594,7 @@ func (c *Client) ProcessChatCommand(chatID int64, cmdline string) (string, bool) } } - content := c.ProcessOutgoingMessage(0, rawCmdArguments(cmdline, 1), "", "", 0) + content := c.PrepareOutgoingMessageContent(rawCmdArguments(cmdline, 1)) if content != nil { _, err := c.client.SendMessage(&client.SendMessageRequest{ |