setReaction method
Sets a reaction on the current message.
Example:
await ctx.setReaction([ReactionTypeEmoji(emoji: '👍')]);
await ctx.setReaction([]); // Remove all reactions
Implementation
Future<bool> setReaction(List<ReactionType>? reaction, {bool? isBig}) async {
final chatId = _getChatId();
final msgId = messageId;
_verifyInfo(
[chatId, msgId],
APIMethod.setMessageReaction,
description:
"No message or chat information found in the current update.",
);
return api.setMessageReaction(
chatId!,
msgId!,
reaction: reaction,
isBig: isBig,
);
}