__init__.py 文件源码

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

项目:ehForwarderBot 作者: blueset 项目源码 文件源码
def link_chat_show_list(self, bot, update, args=None):
        """
        Show the list of available chats for linking.
        Triggered by `/link`.

        Args:
            bot: Telegram Bot instance
            update: Message update
        """
        args = args or []
        if update.message.from_user.id != update.message.chat_id:
            links = db.get_chat_assoc(master_uid="%s.%s" % (self.channel_id, update.message.chat_id))
            if links:
                return self.link_chat_gen_list(bot, update.message.chat_id, filter=" ".join(args), chats=links)

        self.link_chat_gen_list(bot, update.message.from_user.id, filter=" ".join(args))
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号