Message.reply_chat_action()¶
-
Message.reply_chat_action()¶ Bound method reply_chat_action of
Message.Use as a shortcut for:
client.send_chat_action( chat_id=message.chat.id, action="typing" )
Example
message.reply_chat_action("typing")
- Parameters
action (
str) – Type of action to broadcast. Choose one, depending on what the user is about to receive: “typing” for text messages, “upload_photo” for photos, “record_video” or “upload_video” for videos, “record_audio” or “upload_audio” for audio files, “upload_document” for general files, “find_location” for location data, “record_video_note” or “upload_video_note” for video notes, “choose_contact” for contacts, “playing” for games or “cancel” to cancel any chat action currently displayed.- 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.