manager.py 文件源码

python
阅读 25 收藏 0 点赞 0 评论 0

项目:telegram-autoposter 作者: vaniakosmos 项目源码 文件源码
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)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号