示例#1
0
    def _help_callback(self, update: Update, context: CallbackContext):
        bot = context.bot
        message = update.effective_message
        chat_id = update.effective_chat.id

        from telegram_click import generate_command_list
        text = generate_command_list(update, context)
        send_message(bot, chat_id, text,
                     parse_mode=ParseMode.MARKDOWN,
                     reply_to=message.message_id)
示例#2
0
 def _send_command_list(update: Update, context: CallbackContext):
     bot = context.bot
     chat_id = update.effective_message.chat_id
     text = generate_command_list(update, context)
     bot.send_message(chat_id, text, parse_mode=ParseMode.MARKDOWN)
示例#3
0
 def _callback_help(self, update: Update, context: CallbackContext):
     text = generate_command_list(update, context)
     context.bot.send_message(chat_id=update.message.chat_id,
                              text=text,
                              parse_mode=ParseMode.MARKDOWN)