1
0
mirror of synced 2024-11-25 13:16:02 +03:00

Merge pull request #58 from DmitryZagorulko/master

add transfer sticker from tg
This commit is contained in:
Alex Lushpai 2018-11-29 11:53:11 +03:00 committed by GitHub
commit 266acea556
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -944,6 +944,10 @@ func setAttachment(attachments *tgbotapi.Message, client *v1.MgClient, snd *v1.S
fileID = attachments.Document.FileID fileID = attachments.Document.FileID
snd.Message.Type = v1.MsgTypeFile snd.Message.Type = v1.MsgTypeFile
caption = attachments.Document.FileName caption = attachments.Document.FileName
case "sticker":
fileID = attachments.Sticker.FileID
snd.Message.Type = v1.MsgTypeImage
caption = getLocalizedMessage(t)
default: default:
snd.Message.Text = getLocalizedMessage(t) snd.Message.Text = getLocalizedMessage(t)
} }