code: def _respond_commands(self, update_response):
          
  
          chatfile = self.chatfile
          chats = self.chats
  
          exc, upd = update_response.exception(), update_response.result().body
          if exc:
              LOGGER.error(str(exc))
          if not upd:
              return
  
          data = get_data(upd, self.bot_ident)
          for update_id, chat_id, message_id, command in data:
              self._last_update = update_id
              chat_is_known = chat_id in chats
              chats_changed = False
              reply_text = None
  
              if command == '/activate':
                  if chat_is_known:
                      reply_text = 'This chat is already activated.'
                  else:
                      LOGGER.debug(
                          'Adding chat [%s] to notify list.', chat_id)
                      reply_text = 'Activated.'
                      chats.add(chat_id)
                      chats_changed = True
  
              elif command == '/deactivate':
                  if chat_is_known:
                      LOGGER.debug(
                          'Deleting chat [%s] from notify list.', chat_id)
                      reply_text = 'Deactivated.'
                      chats.remove(chat_id)
                      chats_changed = True
  
              if chats_changed and chatfile:
                  write_to_file(chats, chatfile)
  
              elif command == '/help':
                  reply_text = HELP_MESSAGE
  
              else:
                  LOGGER.warning('Could not parse command: '
                                 'bot ident is wrong or missing')
  
              if reply_text:
                  yield self.client.send_message({
                      'chat_id': chat_id,
                      'reply_to_message_id': message_id,
                      'text': reply_text,
                      'parse_mode': 'Markdown',
                  })
docs: Extract commands to bot from update and
          act accordingly. For description of commands,
          see HELP_MESSAGE variable on top of this module.