aboutsummaryrefslogtreecommitdiff
path: root/telegram/handlers.go
diff options
context:
space:
mode:
authorBohdan Horbeshko <bodqhrohro@gmail.com>2022-02-05 21:54:35 +0300
committerBohdan Horbeshko <bodqhrohro@gmail.com>2022-02-05 21:54:35 +0300
commit9d84965e8bd22be4ed2acb549f12d43ca43cfc50 (patch)
tree257be07873d29a8d13fea2bd09757a3187199b6c /telegram/handlers.go
parent7b90b8e4ae9c138f767641fbfa8ad700e8e27b55 (diff)
Fix replies to non-text messages
Diffstat (limited to 'telegram/handlers.go')
-rw-r--r--telegram/handlers.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/telegram/handlers.go b/telegram/handlers.go
index 5e01520..1313871 100644
--- a/telegram/handlers.go
+++ b/telegram/handlers.go
@@ -193,7 +193,7 @@ func (c *Client) updateNewMessage(update *client.UpdateNewMessage) {
"chat_id": update.Message.ChatId,
}).Warn("New message from chat")
- text := c.messageToText(update.Message)
+ text := c.messageToText(update.Message, false)
file, filename := c.contentToFilename(update.Message.Content)
// download file(s)