add NewSetMessageReaction
Marco Andronaco andronacomarco@gmail.com
Wed, 18 Sep 2024 09:50:47 +0200
1 files changed,
14 insertions(+),
0 deletions(-)
jump to
M
helper_methods.go
→
helper_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"}