Beispiel #1
0
def send_help_text(bot, update, session, chat, user):
    """Send the help text."""
    text, keyboard = get_help_text_and_keyboard("Search")
    update.message.chat.send_message(
        text,
        reply_markup=keyboard,
        parse_mode="Markdown",
    )
Beispiel #2
0
def open_help(session, context):
    text, keyboard = get_help_text_and_keyboard("Search")

    context.query.message.edit_text(
        text,
        parse_mode="Markdown",
        reply_markup=keyboard,
        disable_web_page_preview=True,
    )
Beispiel #3
0
def switch_help(session, context):
    """Show the help keyboard."""
    text, keyboard = get_help_text_and_keyboard(context.action)

    context.query.message.edit_text(
        text,
        parse_mode="Markdown",
        reply_markup=keyboard,
        disable_web_page_preview=True,
    )