Merge pull request #58 from DmitryZagorulko/master
add transfer sticker from tg
This commit is contained in:
commit
266acea556
@ -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)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user