Exemplo n.º 1
0
                                     [bot_buttons['location']]])

main_keyboard_only_location = ReplyKeyboardMarkup([[bot_buttons['location']]])

main_keyboard_only_categories = ReplyKeyboardMarkup([[bot_buttons['category']]
                                                     ])

main_keyboard_empty = ReplyKeyboardRemove()

yes_no_keyboard = ReplyKeyboardMarkup([[bot_buttons['yes']],
                                       [bot_buttons['no']]])

yes_no_categories_keyboard = ReplyKeyboardMarkup(
    [[bot_buttons['yes_category']], [bot_buttons['no_category']]])

categories_names_list = Utility_Obj.get_all_merchant_categories(
)  # Contains all categories names

categories_keyboard = makeAKeyboard(categories_names_list, 5)


def unknown_function(update, context):
    try:
        chat_id = update.message.chat_id
        first_name = update.message.chat.first_name
        first_name = first_name if first_name != None else update.message.from_user.first_name
        group_title = update.message.chat.title
        context.bot.send_message(chat_id=chat_id,
                                 text=bot_replies['insert_token'] % first_name,
                                 reply_markup=ReplyKeyboardRemove(),
                                 parse_mode=ParseMode.MARKDOWN)
    except Exception as e: