Beispiel #1
0
def open_help(session, context):
    """Open the donations text."""
    text, keyboard = get_help_text_and_keyboard(context.user, "intro")
    context.query.message.edit_text(
        text,
        parse_mode="Markdown",
        reply_markup=keyboard,
        disable_web_page_preview=True,
    )
Beispiel #2
0
def send_help(bot, update, session, user):
    """Send a help text."""
    text, keyboard = get_help_text_and_keyboard(user, 'intro')

    update.message.chat.send_message(
        text,
        parse_mode='Markdown',
        reply_markup=keyboard,
        disable_web_page_preview=True,
    )
Beispiel #3
0
def switch_help(session, context):
    """Show the correct help section."""
    user = context.user
    text, keyboard = get_help_text_and_keyboard(user, context.action)

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