コード例 #1
0
def send_donation_text(bot, update, session, user):
    """Send the donation text."""
    update.message.chat.send_message(
        i18n.t('misc.donation', locale=user.locale),
        parse_mode='Markdown',
        reply_markup=get_donations_keyboard(user)
    )
コード例 #2
0
def open_donation(session, context):
    """Open the donations text."""
    context.query.message.edit_text(
        i18n.t("misc.donation", locale=context.user.locale),
        parse_mode="Markdown",
        reply_markup=get_donations_keyboard(context.user),
    )