Skip to content

Message.action

bound method

Sends a chat action to a specific chat. Supporting context manager (with statement)

Message.action(
  action: Literal['typing', 'upload_photo', 'record_video', 'upload_video', 'record_voice', 'upload_voice', 'upload_document', 'choose_sticker', 'find_location', 'record_video_note', 'upload_video_note', 'cancel'],
  topic_id: MessageTopic | None = None
) → ChatActions

Source: pytdbot/types/bound_methods/message.py