send sticker on permisison mismatch
This commit is contained in:
parent
52f4898c2b
commit
89e3d91b0f
3 changed files with 15 additions and 7 deletions
|
@ -13,3 +13,12 @@ func SendMessage(message tgbotapi.MessageConfig, bot *tgbotapi.BotAPI) {
|
|||
}
|
||||
log.Printf("[bot] Sent Message: %s", message.Text)
|
||||
}
|
||||
|
||||
func SendSticker(sticker tgbotapi.StickerConfig, bot *tgbotapi.BotAPI) {
|
||||
_, err := bot.Send(sticker)
|
||||
if err != nil {
|
||||
log.Printf("Failed to send Sticker: %v\n", err)
|
||||
return
|
||||
}
|
||||
log.Printf("[bot] Sent Sticker")
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue