send sticker on permisison mismatch
This commit is contained in:
parent
52f4898c2b
commit
89e3d91b0f
3 changed files with 15 additions and 7 deletions
|
@ -70,14 +70,13 @@ func SetGP(update tgbotapi.Update, bot *tgbotapi.BotAPI) {
|
|||
}
|
||||
|
||||
if !commonlogic.ContainsInt64(config.BotConfig.GayPoints.ModifyUsers, update.Message.From.ID) {
|
||||
message := tgbotapi.MessageConfig{
|
||||
BaseChat: tgbotapi.BaseChat{ChatID: update.Message.Chat.ID, ReplyToMessageID: update.Message.MessageID},
|
||||
ParseMode: "html",
|
||||
DisableWebPagePreview: false,
|
||||
Text: "Who the fuck do you think you are telling me what to do?",
|
||||
}
|
||||
botIO.SendMessage(message, bot)
|
||||
sticker := tgbotapi.StickerConfig{BaseFile: tgbotapi.BaseFile{
|
||||
BaseChat: tgbotapi.BaseChat{ChatID: update.Message.Chat.ID, ReplyToMessageID: update.Message.MessageID},
|
||||
File: tgbotapi.FilePath("bloater.webp"),
|
||||
}}
|
||||
botIO.SendSticker(sticker, bot)
|
||||
return
|
||||
|
||||
}
|
||||
|
||||
cmd := strings.ToLower(update.Message.Command())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue