Пример #1
0
 def send_chat_action(self, chat_id, action):
     """
     Use this method when you need to tell the user that something is happening on the bot's side.
     The status is set for 5 seconds or less (when a message arrives from your bot, Telegram clients clear
     its typing status).
     :param chat_id:
     :param action:  One of the following strings: 'typing', 'upload_photo', 'record_video', 'upload_video',
                     'record_audio', 'upload_audio', 'upload_document', 'find_location'.
     :return: API reply. :type: boolean
     """
     return apihelper.send_chat_action(self.token, chat_id, action)
Пример #2
0
 def send_chat_action(self, chat_id, action):
     """
     Use this method when you need to tell the user that something is happening on the bot's side.
     The status is set for 5 seconds or less (when a message arrives from your bot, Telegram clients clear
     its typing status).
     :param chat_id:
     :param action:  One of the following strings: 'typing', 'upload_photo', 'record_video', 'upload_video',
                     'record_audio', 'upload_audio', 'upload_document', 'find_location'.
     :return: API reply. :type: boolean
     """
     return apihelper.send_chat_action(self.token, chat_id, action)
Пример #3
0
 def send_chat_action(self, chat_id, action):
     """
     Use this method when you need to tell the user that something is happening on the bot's side.
     The status is set for 5 seconds or less (when a message arrives from your bot, Telegram clients clear
     its typing status).
     :param chat_id:
     :param action: string . typing,upload_photo,record_video,upload_video,record_audio,upload_audio,upload_document,
                             find_location.
     :return:
     """
     return apihelper.send_chat_action(self.token, chat_id, action)