1
0
mirror of synced 2024-11-22 04:26:01 +03:00

add transfer sticker from tg

This commit is contained in:
DmitryZagorulko 2018-11-29 11:46:39 +03:00
parent 9d915244e1
commit 3eac7e7ee2

View File

@ -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)
}