pytdbot.types.bound_methods.chatActions

class pytdbot.types.bound_methods.chatActions.ChatActions(client, chat_id, action, message_thread_id=None)[source]

Bases: object

Parameters:
  • client (pytdbot.Client)

  • chat_id (int)

  • 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'])

  • message_thread_id (int)

__init__(client, chat_id, action, message_thread_id=None)[source]
Parameters:
  • client (Client)

  • chat_id (int)

  • 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'])

  • message_thread_id (int | None)

Return type:

None

async sendAction()[source]
setAction(action)[source]
Parameters:

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'])

async stop()[source]