def command_choose(self, bot: Bot, update: Update):
channels = []
for label, channel in self.channels.items():
button = InlineKeyboardButton(text=label, callback_data=label)
channels.append(button)
keyboard = [channels]
reply_markup = InlineKeyboardMarkup(keyboard)
bot.send_message(chat_id=update.message.chat_id,
text='Choose channel.',
reply_markup=reply_markup)
评论列表
文章目录