Chat Actions & Reactions
Part of the API Reference.
sendChatAction
Future<bool> sendChatAction(
Object chatId,
ChatAction action, {
String? businessConnectionId,
int? messageThreadId,
}) async =>
Shows a transient status indicator such as “Bot is typing…” in the chat. The indicator is automatically cleared after ~5 seconds or the next sent message, whichever is sooner.
setMessageReaction
Future<bool> setMessageReaction(
Object chatId,
int messageId, {
List<ReactionType>? reaction,
bool? isBig,
}) async =>
Sets (or clears) the bot’s emoji reaction(s) on a message.
deleteMessageReaction
Future<bool> deleteMessageReaction(
Object chatId,
int messageId,
int userId,
) async =>
Removes one user's reaction from a message in a chat the bot administers.
deleteAllMessageReactions
Future<bool> deleteAllMessageReactions(Object chatId, int messageId) async =>
Removes all reactions from a message in a chat the bot administers.