all repos — telegram-bot-api @ f9ab9c0a4df305dcfc111e96a8b92c6fda442a39

Golang bindings for the Telegram Bot API

add NewSetMessageReaction
Marco Andronaco andronacomarco@gmail.com
Wed, 18 Sep 2024 09:50:47 +0200
commit

f9ab9c0a4df305dcfc111e96a8b92c6fda442a39

parent

fa8d187b21edc322d11f21093ead55f3d0578a64

1 files changed, 14 insertions(+), 0 deletions(-)

jump to
M helper_methods.gohelper_methods.go

@@ -988,6 +988,20 @@ Emoji: emoji,

} } +// NewSetMessageReaction allows you to set a message's reactions. +func NewSetMessageReaction(chatID int64, messageID int, reaction []ReactionType, isBig bool) SetMessageReactionConfig { + return SetMessageReactionConfig{ + BaseChatMessage: BaseChatMessage{ + ChatConfig: ChatConfig{ + ChatID: chatID, + }, + MessageID: messageID, + }, + Reaction: reaction, + IsBig: isBig, + } +} + // NewBotCommandScopeDefault represents the default scope of bot commands. func NewBotCommandScopeDefault() BotCommandScope { return BotCommandScope{Type: "default"}