Esempio n. 1
0
def cmd_players(update: Update, context: CallbackContext):
    """Usage: /players url"""
    update.message.reply_chat_action(ChatAction.TYPING)

    url = context.user_data['url']

    update.message.reply_text(text=info.players(url),
                              reply_markup=reply_markup(),
                              parse_mode=ParseMode.MARKDOWN)

    logging.info("/players %s online" % url)
Esempio n. 2
0
def cb_about(update: Update, context: CallbackContext):
    update.callback_query.message.edit_text(text=_(welcome_text),
                                            reply_markup=reply_markup(),
                                            parse_mode=ParseMode.MARKDOWN)
Esempio n. 3
0
def cb_players(update: Update, context: CallbackContext):
    update.callback_query.message.edit_text(text=info.players(
        context.user_data['url']),
                                            reply_markup=reply_markup(),
                                            parse_mode=ParseMode.MARKDOWN)
    update.callback_query.edit_message_text