sendChatAction method

Future<bool> sendChatAction(
  1. ChatID chatId,
  2. ChatAction action
)
inherited

Use this method when you need to tell the user that something is happening on the bot's side.

The status is set for 5 seconds or less (when a message arrives from your bot, Telegram clients clear its typing status).

Returns True on success.

Implementation

Future<bool> sendChatAction(ChatID chatId, ChatAction action) {
  return _client.apiCall(
    _token,
    'sendChatAction',
    {'chat_id': chatId, 'action': action},
  );
}