fix m_start
This commit is contained in:
@ -13,7 +13,7 @@ map_server = hlna.list_config
|
||||
|
||||
|
||||
@hlna_bot.message_handler(commands=["start"])
|
||||
def start(m):
|
||||
def m_start(m):
|
||||
menu = types.ReplyKeyboardMarkup(resize_keyboard=True)
|
||||
k_start = types.KeyboardButton("🦖 Старт")
|
||||
k_stop = types.KeyboardButton("🦇 Выключить")
|
||||
@ -47,7 +47,7 @@ def m_chose(m):
|
||||
menu_start.add(k_back)
|
||||
hlna_bot.send_message(m.chat.id, text="{0.first_name}, выбери карту".format(m.from_user), reply_markup=menu_start)
|
||||
elif m.text.strip() == 'Назад':
|
||||
hlna_bot.register_next_step_handler(m, start)
|
||||
m_start(m)
|
||||
elif m.text.strip() == 'TheIsland':
|
||||
hlna.start()
|
||||
#def m_start(m):
|
||||
|
Reference in New Issue
Block a user