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))
评论列表
文章目录