def set_up_commands(self):
commands = {
'start': self.command_help,
'help': self.command_help,
'list': self.command_list,
'choose': self.command_choose,
}
for name, command in commands.items():
self.dispatcher.add_handler(CommandHandler(name, command))
self.dispatcher.add_handler(CallbackQueryHandler(self.command_accept_choice))
self.dispatcher.add_error_handler(self.command_error)
评论列表
文章目录