почему бот повторно выводит страну и город после выбора типа доставки , хотя он не должен этого делаь?
https://pastebin.com/tkMN8EA5 помоги пж
def proccesing_cities(message):
global country, city, bore
try:
if country == "Украина":
if message.text in cities_listuk:
city = message.text
elif country == "Россия":
if message.text in cities_listru:
city = message.text
else:
bot.send_message(message.from_user.id, f"В стране {country} город {city} не найден, попробуйте ещё раз")
bot.register_next_step_handler(message, proccesing_cities)
bot.send_message(message.from_user.id, f"Вы выбрали страну {country}, город {city}")
bot.send_message(message.chat.id, "Выберите тип доставки: ", reply_markup = tay)
bot.register_next_step_handler(message, proccesing_cities)
try:
if message.text == '1' or message.text == '2' or message.text == '3':
bore = message.text
print("da")
bot.send_message(message.chat.id, f"Вы выбрлиq {bore}.")
bot.send_message(message.chat.id, "Ассортимент: ", reply_markup = dab)
# bot.register_next_step_handler(message, proccesing_cities)