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 (:obj:`~pyrogram.enums.ChatAction`) – Type of action to broadcast.
progress (``int``, *optional*) – Upload progress, as a percentage.
emoji (``str``, *optional*) – The animated emoji. Only supported for
TRIGGER_EMOJI_ANIMATIONandWATCH_EMOJI_ANIMATION.emoji_message_id (``int``, *optional*) – Message identifier of the message containing the animated emoji. Only supported for
TRIGGER_EMOJI_ANIMATION.emoji_message_interaction (:obj:`raw.types.DataJSON`, *optional*) – Only supported for
TRIGGER_EMOJI_ANIMATION.
- Returns:¶
``bool`` (On success, True is returned.)
- Raises:¶
ValueError – In case the provided string is not a valid chat action.:
RPCError –