Message.reply_chat_action()

async Message.reply_chat_action()[source]

Bound method reply_chat_action of Message.

Use as a shortcut for:

from hydrogram import enums

await client.send_chat_action(
    chat_id=message.chat.id,
    message_thread_id=message.message_thread_id,
    action=enums.ChatAction.TYPING,
)

Example

from hydrogram import enums

await message.reply_chat_action(enums.ChatAction.TYPING)
Parameters:

action (ChatAction) – Type of action to broadcast.

Returns:

bool – On success, True is returned.

Raises:
  • RPCError – In case of a Telegram RPC error.

  • ValueError – In case the provided string is not a valid chat action.