def select_city_3(update: Update, context: CallbackContext):
    query = update.callback_query
    user = query.from_user
    query.answer()

    region_name = query.data.split(':')[1]
    region = Region.by(name=region_name)
    reply_markup = InlineKeyboardMarkup(region_cities_keyboard(region=region))
    query.edit_message_text(s.select_your_city, reply_markup=reply_markup)
    return CITY_SELECTION
Beispiel #2
0
def update_city_3(update: Update, context: CallbackContext):
    query = update.callback_query
    user = query.from_user
    query.answer()

    region_name = query.data.split(':')[1]
    region = Region.by(name=region_name)
    reply_markup = InlineKeyboardMarkup(region_cities_keyboard(region=region))
    query.edit_message_text(s.settings_update_city_select_new,
                            reply_markup=reply_markup)
    return UPDATING_CITY
def select_event_city_3(update: Update, context: CallbackContext):
    query = update.callback_query
    user = query.from_user
    query.answer()

    region_name = query.data.split(':')[1]
    region = Region.by(name=region_name)
    reply_markup = InlineKeyboardMarkup(region_cities_keyboard(region=region))
    query.edit_message_text(s.step1_select_event_city,
                            parse_mode=ParseMode.HTML,
                            reply_markup=reply_markup)
    return SELECTING_CITY