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)
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)
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)