示例#1
0
 def media_received(self, bot: BotAPIClient, update: Update):
     update.understanding = MessageUnderstanding(
         None, MEDIA_RECEIVED_INTENT, media_location=update.media_location)
     self._process_update(bot, update)
示例#2
0
 def start_callback(self, bot: BotAPIClient, update: Update):
     update.understanding = MessageUnderstanding(text=update.message_text,
                                                 intent='start')
     self._process_update(bot, update)