Exemplo n.º 1
0
def start(update: Update, context: CallbackContext) -> int:
    """Select an action: Login, Register, Help"""
    text = ('Оберіть дію нижче 👇')
    keyboard = Buttons.get_main_menu()
    
    if context.user_data.get(con.START_OVER):
        query = update.callback_query
        query.answer()
        query.edit_message_text(text=text, reply_markup=keyboard)
    else:
        msg = update.message
        msg.reply_text(text=text, reply_markup=keyboard)
        
        _save_sender(update, context)
    
    context.user_data[con.START_OVER] = False

    return con.SELECTING_ACTION