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)
def cb_about(update: Update, context: CallbackContext): update.callback_query.message.edit_text(text=_(welcome_text), reply_markup=reply_markup(), parse_mode=ParseMode.MARKDOWN)
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