def command_help(self, bot: Bot, update: Update):
text = "/help or /start - print this message.\n" \
"/choose - choose channels.\n" \
"/list - print list of available channels.\n"
if self.chosen_channel:
channel_help = self.chosen_channel.help_text() or ' - no commands'
text += f"\n`{self.chosen_channel.label} ({self.chosen_channel.name})` commands:\n" + channel_help
bot.send_message(chat_id=update.message.chat_id,
text=text)
评论列表
文章目录