Message.reply_chat_action()#

Message.reply_chat_action()#

Bound method reply_chat_action of Message.

Use as a shortcut for:

from pyrogram import enums

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

Example

from pyrogram 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.