From 3eac7e7ee251d6b8bafbef4083d12e85a01a332d Mon Sep 17 00:00:00 2001 From: DmitryZagorulko Date: Thu, 29 Nov 2018 11:46:39 +0300 Subject: [PATCH] add transfer sticker from tg --- src/routing.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/routing.go b/src/routing.go index 58db220..372b941 100644 --- a/src/routing.go +++ b/src/routing.go @@ -944,6 +944,10 @@ func setAttachment(attachments *tgbotapi.Message, client *v1.MgClient, snd *v1.S fileID = attachments.Document.FileID snd.Message.Type = v1.MsgTypeFile caption = attachments.Document.FileName + case "sticker": + fileID = attachments.Sticker.FileID + snd.Message.Type = v1.MsgTypeImage + caption = getLocalizedMessage(t) default: snd.Message.Text = getLocalizedMessage(t) }