priem_telegram_bot/server.py

615 lines
44 KiB
Python
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

from aiogram import Bot, Dispatcher, executor, types
from config import TOKEN
from messages import MESSAGES
from accounts import ALLusers
from predmet import editPredmet
from poisk import poiskPredm
import keyboards as kb
from messages import TIPOINFO
#запуск
#----------------------------------------
bot = Bot(token=TOKEN)
dp = Dispatcher(bot)
# инициализируем соединение с БД
checkuser = ALLusers('accounts.db')
pr_edit = editPredmet('accounts.db')
thepoisk = poiskPredm('accounts.db')
#----------------------------------------
moderlist = [telegram_id]
# start help
#----------------------------------------
# при нажатие start, help
@dp.message_handler(commands=['start','help'])
async def process_start_command(message: types.Message):
if (not checkuser.search_player(message.from_user.id)):
# если юзера нет в базе, добавляем
checkuser.add_player(message.from_user.id)
checkuser.update_online(message.from_user.id, True)
photo = open('photo/logo.jpg', 'rb')
await bot.send_photo(message.from_user.id, photo, MESSAGES['start'], reply_markup=kb.main_menu)
#await bot.send_photo(message.from_user.id, 'AgACAgIAAxkBAAIDjGDSAWwhoNgt-vWDgUAtdnRsRzdDAAKHtDEbP96RSlN5sd5KYyNpcY2QoS4AAwEAAwIAA3MAAwfZAwABHwQ', MESSAGES['start'], reply_markup=kb.main_menu)
else:
# если юзер в базе
checkuser.update_online(message.from_user.id, True)
photo = open('photo/logo.jpg', 'rb')
await bot.send_photo(message.from_user.id, photo, MESSAGES['start'], reply_markup=kb.main_menu)
#await bot.send_photo(message.from_user.id, 'AgACAgIAAxkBAAIDjGDSAWwhoNgt-vWDgUAtdnRsRzdDAAKHtDEbP96RSlN5sd5KYyNpcY2QoS4AAwEAAwIAA3MAAwfZAwABHwQ', MESSAGES['start'], reply_markup=kb.main_menu)
#----------------------------------------
# получение id фото
#----------------------------------------
# получение токена фото, просто скинуть в бота фото в консоли выдаст токен (не в чате телеграмма)
@dp.message_handler(content_types=['photo'])
async def scan_message(msg: types.Message):
document_id = msg.photo[0].file_id
file_info = await bot.get_file(document_id)
print(f'file_id: {file_info.file_id}')
print(f'-----------------')
#----------------------------------------
# логи
#----------------------------------------
@dp.message_handler(commands=['admin'])
async def process_how_command(message: types.Message):
if (message.from_user.id not in moderlist):
pass
else:
answer_message = checkuser.log_info()
await message.reply(answer_message)
#----------------------------------------
# главное меню
#----------------------------------------
@dp.message_handler(content_types=["text"])
async def do_main_menu(message: types.Message):
txt = message.text
if (not checkuser.search_player(message.from_user.id)):
await message.reply(MESSAGES['fail'])
else:
# главное меню
if txt == '🎓 Поступление 2021':
await message.answer(MESSAGES['postuplenie'], reply_markup=kb.menu_1)
elif txt == '📚 Школьникам':
await message.answer(MESSAGES['shk0'], reply_markup=kb.menu_2)
elif txt == '☎️ Контакты':
await message.answer(f'📞 Куда Вы желаете позвонить?', reply_markup=kb.menu_3)
elif txt == 'Назад':
photo = open('photo/logo.jpg', 'rb')
await bot.send_photo(message.from_user.id, photo, MESSAGES['start'], reply_markup=kb.main_menu)
#await bot.send_photo(message.from_user.id, 'AgACAgIAAxkBAAIDjGDSAWwhoNgt-vWDgUAtdnRsRzdDAAKHtDEbP96RSlN5sd5KYyNpcY2QoS4AAwEAAwIAA3MAAwfZAwABHwQ', MESSAGES['start'], reply_markup=kb.main_menu)
# главное меню > поступление 2021
elif txt == 'Информация \nо направлениях':
await message.answer(f'Выберите Вы гражданин РФ или иностранный гражданин', reply_markup=kb.menu_1_1)
elif txt == 'Количество мест \nдля приема':
await message.answer(MESSAGES['m1_2'], reply_markup=kb.menu_1_2)
elif txt == 'Баллы':
await message.answer(f'Какие именно баллы Вас интересуют?', reply_markup=kb.menu_1_3)
elif txt == 'Основные даты':
await message.answer(f'Выберите подходящую Вам форму обучения', reply_markup=kb.menu_1_4)
elif txt == 'Стоимость обучения':
await message.answer(f'Выберите, пожалуйста, желаемую форму обучения', reply_markup=kb.menu_1_5)
elif txt == 'Списки':
await message.answer(MESSAGES['spiski'], reply_markup=kb.menu_1_6)
elif txt == 'Помощник поступления':
await message.answer(f'🌍 Вы являетесь гражданином РФ или иностранным гражданином?', reply_markup=kb.menu_1_7)
elif txt == '↪️ Назад':
await message.answer(MESSAGES['postuplenie'], reply_markup=kb.menu_1)
# 1) информация о направлениях
elif txt == '🇷🇺 Для граждан РФ':
await message.answer(f'Вас интересует бакалавриат/специалитет или магистратура?', reply_markup=kb.menu_1_1_1)
elif txt == '🌍 Для иностранных граждан':
await message.answer(f'Вас интересует бакалавриат/специалитет или магистратура?', reply_markup=kb.menu_1_1_2)
# Для граждан РФ
elif txt == '👩🏼‍🎓 Бакалавриат\nСпециалитет':
await message.answer(MESSAGES['ru_full_b'])
elif txt == '👨🏼‍🎓 Магистратура':
await message.answer(MESSAGES['ru_full_m'])
# для иностранных граждан
elif txt == '👩🏻‍🎓 Бакалавриат':
await message.answer(MESSAGES['inst_full_b'])
elif txt == '👨🏻‍🎓 Магистратура':
await message.answer(MESSAGES['inst_full_m'])
# 2) количество мест для приема
elif txt == 'КЦП':
await message.answer(MESSAGES['m1_2_1'], reply_markup=kb.menu_1_2_1)
elif txt == 'ДОУ':
await message.answer(MESSAGES['m1_2_1'], reply_markup=kb.menu_1_2_2)
elif txt == '↩️ Назад':
await message.answer(MESSAGES['m1_2'], reply_markup=kb.menu_1_2)
# кцп
elif txt == '🔻 Очная форма обучения':
await message.answer(MESSAGES['m1_2_1_1'], reply_markup=kb.menu_1_2_1_1)
elif txt == '🔻 Заочная форма обучения':
await message.answer(f'К сожалению, на эту форму обучения нет бюджетных мест')
elif txt == '🔻 Очно-заочная форма обучения':
await message.answer(f'К сожалению, на эту форму обучения нет бюджетных мест')
# кцп > очная форма обучения
elif txt == '🔸 Бакалавриат и специалитет':
photo = open('photo/1_2/1.jpg', 'rb')
await bot.send_photo(message.from_user.id, photo)
#await bot.send_photo(message.from_user.id, 'AgACAgIAAxkBAAIHM2DSC17M47WfETz3XZuIhvhWJDz5AALSsTEbrG6QSimB7V_RxkF5XiBZpC4AAwEAAwIAA3MAA1ikAgABHwQ')
elif txt == '🔹 Магистратура':
photo = open('photo/1_2/2.jpg', 'rb')
await bot.send_photo(message.from_user.id, photo)
#await bot.send_photo(message.from_user.id, 'AgACAgIAAxkBAAIBvWDRBGi7ZilDcUtIkKrwwkQ7RbMdAAIjtDEbrG6IShCWRM5HY3UOMYL2qS4AAwEAAwIAA3MAA5msAAIfBA')
# доу
elif txt == '🔺 Очная форма обучения':
await message.answer(MESSAGES['m1_2_1_1'], reply_markup=kb.menu_1_2_2_1)
elif txt == '🔺 Заочная форма обучения':
await message.answer(MESSAGES['m1_2_1_1b'], reply_markup=kb.menu_1_2_2_2)
elif txt == '🔺 Очно-заочная форма обучения':
photo = open('photo/1_2/7.jpg', 'rb')
await bot.send_photo(message.from_user.id, photo)
#await bot.send_photo(message.from_user.id, 'AgACAgIAAxkBAAIBwmDRBMlvHeUwkz-8dHRn1v3PQGhcAAIptDEbrG6ISjKcV6w6g_pqxzMipC4AAwEAAwIAA3MAAyCzAgABHwQ')
# доу > очная форма
elif txt == '🔶 Бакалавриат и специалитет':
photo = open('photo/1_2/3.jpg', 'rb')
await bot.send_photo(message.from_user.id, photo)
#await bot.send_photo(message.from_user.id, 'AgACAgIAAxkBAAIBvmDRBHvwQXhOP2bhnuY7XY-slKPPAAIktDEbrG6ISh4TiNuIXFg8IV-zqS4AAwEAAwIAA3MAA2gdAAIfBA')
elif txt == '🔷 Магистратура':
photo = open('photo/1_2/4.jpg', 'rb')
await bot.send_photo(message.from_user.id, photo)
#await bot.send_photo(message.from_user.id, 'AgACAgIAAxkBAAIBv2DRBI7GRCimNgcb5_ZhhnyXVLMhAAImtDEbrG6ISntHUQlkwaYoZFALpC4AAwEAAwIAA3MAA4umAgABHwQ')
# доу > заочная форма
elif txt == '🔷 Бакалавриат':
photo = open('photo/1_2/5.jpg', 'rb')
await bot.send_photo(message.from_user.id, photo)
#await bot.send_photo(message.from_user.id, 'AgACAgIAAxkBAAIBwGDRBJ8CB2YfNpTKIWHZYGp2ruGPAAIntDEbrG6ISpXTtGn1B2iRizEPoi4AAwEAAwIAA3MAAzHLAwABHwQ')
elif txt == '🔶 Магистратура':
photo = open('photo/1_2/6.jpg', 'rb')
await bot.send_photo(message.from_user.id, photo)
#await bot.send_photo(message.from_user.id, 'AgACAgIAAxkBAAIBwWDRBK5SxGL1-3KMF0njV3ZhvTg-AAIotDEbrG6ISrewzRD43HqOWEOmoi4AAwEAAwIAA3MAAyj-AwABHwQ')
# 3) баллы
elif txt == '🌝 Проходные баллы':
photo = open('photo/1_3/1.jpg', 'rb')
await bot.send_photo(message.from_user.id, photo, MESSAGES['proh_bal'])
#await bot.send_photo(message.from_user.id, 'AgACAgIAAxkBAAICE2DRBXd9tY94YyLrg1wjW4hESDoDAAIqtDEbrG6ISusyUfEzskluTEAlpC4AAwEAAwIAA3MAA7CNAgABHwQ', MESSAGES['proh_bal'])
elif txt == '🌚 Минимальные баллы':
photo = open('photo/1_3/2.jpg', 'rb')
await bot.send_photo(message.from_user.id, photo, MESSAGES['min_bal'])
#await bot.send_photo(message.from_user.id, 'AgACAgIAAxkBAAICFGDRBYdgu436I5v5Zxq_e72AdU5yAAIrtDEbrG6ISiCQLo0DDFPx5rCoqS4AAwEAAwIAA3MABKoAAh8E', MESSAGES['min_bal'])
# 4) основные даты
elif txt == '🟠 Очная форма обучения':
await message.answer(f'Бакалавриат/специалитет или магистратура?', reply_markup=kb.menu_1_4_1)
elif txt == '🟡 Заочная и очно-заочная\nформа обучения':
photo = open('photo/1_4/z.jpg', 'rb')
await bot.send_photo(message.from_user.id, photo)
await bot.send_photo(message.from_user.id, 'AgACAgIAAxkBAAIOk2DcLNjRBPxuNIxk3gOQ_bM0fouEAAI2tDEbW1ThSj-9HsrUVdQWAQADAgADcwADIAQ')
# очная
elif txt == '🟢 Бакалавриат и специалитет':
photo = open('photo/1_4/1.jpg', 'rb')
await bot.send_photo(message.from_user.id, photo)
await bot.send_photo(message.from_user.id, 'AgACAgIAAxkBAAIOkWDcLLGxzIR2uNGO37eCCdRZCHFbAAI0tDEbW1ThSlTwH1NA3vopAQADAgADcwADIAQ')
elif txt == '🟣 Магистратура':
photo = open('photo/1_4/2.jpg', 'rb')
await bot.send_photo(message.from_user.id, photo)
await bot.send_photo(message.from_user.id, 'AgACAgIAAxkBAAIOkmDcLMaEeNP-Kv1mnZTiSzviK7tAAAI1tDEbW1ThSuR_eQ73h4k-AQADAgADcwADIAQ')
# 5) стоимость обучения
elif txt == '💵 Бакалавриат':
await message.answer('Нет данных')
# photo = open('photo/1_5/2.jpg', 'rb')#????????
# await bot.send_photo(message.from_user.id, photo)
# await bot.send_photo(message.from_user.id, 'AgACAgIAAxkBAAIF62DSB8slN1WKhyiEx5bcZ-7GqB3mAAKVtDEbP96RSvMfCnfIDkc_SaaDny4AAwEAAwIAA3MAA0J_BQABHwQ')
elif txt == '💶 Специалитет':
photo = open('photo/1_5/stoimost_spetsy.jpg', 'rb')
await bot.send_photo(message.from_user.id, photo)
#await bot.send_photo(message.from_user.id, 'AgACAgIAAxkBAAIGBmDSCAyPU-uM62hske9bmXKzrSFNAAKWtDEbP96RSrOpdbZR2hTNog0ZpC4AAwEAAwIAA3MAAyydAgABHwQ')
elif txt == '💴 Магистратура':
photo = open('photo/1_5/stoimost_magi.jpg', 'rb')
await bot.send_photo(message.from_user.id, photo)
#await bot.send_photo(message.from_user.id, 'AgACAgIAAxkBAAIGB2DSCBVl4bS3bzAqE--B1hPrOOVYAAKXtDEbP96RStumR9JjkNa24WsAAZ8uAAMBAAMCAANzAAN1wgUAAR8E')
# главное меню > контакты
elif txt == 'Приемная комиссия':
await message.answer(MESSAGES['contact1'])
elif txt == 'Целевое обучение':
await message.answer(MESSAGES['contact2'])
elif txt == 'ВУЦ':
await message.answer(MESSAGES['contact3'])
elif txt == 'Заочное обучение':
await message.answer(MESSAGES['contact4'])
elif txt == 'Отдел общежитий':
await message.answer(MESSAGES['contact5'])
elif txt == 'Аспирантура':
await message.answer(MESSAGES['contact6'])
elif txt == 'Особая квота':
await message.answer(MESSAGES['contact7'])
elif txt == 'Перевод из другого университета':
await message.answer(MESSAGES['contact8'])
elif txt == 'Забрать аттестат':
await message.answer(MESSAGES['contact9'])
# 6) списки
elif txt == '💡 Конкурсные списки':
await message.answer(MESSAGES['spiski_1'], reply_markup=kb.inline_1_6_1)
elif txt == '📋 Списки подавших документы':
await message.answer(MESSAGES['spiski_2'], reply_markup=kb.inline_1_6_2)
elif txt == '🔥 Траектория':
await message.answer(MESSAGES['spiski_3'], reply_markup=kb.inline_1_6_3)
elif txt == '📊 Статистика приема':
await message.answer(MESSAGES['spiski_4'], reply_markup=kb.inline_1_6_4)
# помощник в выборе
elif txt == '⤵️ Назад':
await message.answer(f'🌍 Вы являетесь гражданином РФ или иностранным гражданином?', reply_markup=kb.menu_1_7)
elif txt == '🇷🇺 Я гражданин РФ':
checkuser.update_russia(message.from_user.id, 0)
await message.answer(f'Вас интересует бакалавриат/специалитет или магистратура?', reply_markup=kb.menu_1_7_1)
elif txt == '🌐 Я иностранный гражданин':
checkuser.update_russia(message.from_user.id, 1)
await message.answer(f'Вас интересует бакалавриат или магистратура?', reply_markup=kb.menu_1_7_2)
# помощник > гражданин рф
elif txt == '⬅️ Назад':
await message.answer(f'Вас интересует бакалавриат/специалитет или магистратура?', reply_markup=kb.menu_1_7_1)
elif txt == '👩🏼‍💼 Поступление на бакалавриат/специалитет':
await message.answer(f'Уточните, какую именно информацию Вы желаете получить?', reply_markup=kb.menu_1_7_1_1)
elif txt == '👨🏻‍🎓 Поступление в магистратуру':
await message.answer(f'Уточните, какую именно информацию Вы желаете получить?', reply_markup=kb.menu_1_7_1_2)
# гражданин рф > поступление на бакалавриат
elif txt == '📄 Перечень документов для поступления':
photo = open('photo/pomoshnik/dokumenty_BS.jpg', 'rb')
await bot.send_photo(message.from_user.id, photo)
#await bot.send_photo(message.from_user.id, 'AgACAgIAAxkBAAIIwGDSDtLT2UPJ3AtpL2aE_Krw2jreAAJWszEbMW6RSl0haBUsmVxZzjUFpC4AAwEAAwIAA3MAA-qjAgABHwQ')
elif txt == '🏅 Индивидуальные достижения':
photo = open('photo/pomoshnik/ID_BS.jpg', 'rb')
await bot.send_photo(message.from_user.id, photo)
#await bot.send_photo(message.from_user.id, 'AgACAgIAAxkBAAIJDGDSD2El8-LAM6L8hVysfzBrR-LXAAJYszEbMW6RSlBktvm_VyRyIi2KqS4AAwEAAwIAA3MAA_MjAAIfBA')
elif txt == '❗️ Выберите предметы ЕГЭ/ВИ.\nПолучите направления подготовки':
if (checkuser.check_russia(message.from_user.id) == 0):
answer_message = pr_edit.check_predm(message.from_user.id)
await message.answer(f'Если Вы желаете удалить из списка выбранный Вами предмет, то просто нажмите на него снова.', reply_markup=kb.helper1)
await message.answer(answer_message, reply_markup=kb.inline_next)
elif (checkuser.check_russia(message.from_user.id) == 1):
answer_message = pr_edit.check_predm(message.from_user.id)
await message.answer(f'Если Вы желаете удалить из списка выбранный Вами предмет, то просто нажмите на него снова.', reply_markup=kb.helper1)
await message.answer(answer_message, reply_markup=kb.inline_next)
else:
await message.answer(f'Ошибка помощника')
elif txt == '📆 Расписание вступительных испытаний (ВИ)\n(если ты после колледжа, техникума)':
photo = open('photo/pomoshnik/pp/1.jpg', 'rb')
await bot.send_photo(message.from_user.id, photo)
#await bot.send_photo(message.from_user.id, 'AgACAgIAAxkBAAICUWDRBhU-45aVPJ29ikuRWVWlw7GxAAIstDEbrG6ISqLRu6xJZlJpk4qQoS4AAwEAAwIAA3MAA6jZAwABHwQ')
# гражданин рф > поступление в магистратуру
elif txt == '📑 Перечень документов для поступления':
photo = open('photo/pomoshnik/dokumenty_BS.jpg', 'rb')
await bot.send_photo(message.from_user.id, photo)
#await bot.send_photo(message.from_user.id, 'AgACAgIAAxkBAAIJp2DSEDcCgzE5WWWuWcd-43skHSC9AAJWszEbMW6RSl0haBUsmVxZzjUFpC4AAwEAAwIAA3MAA-qjAgABHwQ')
elif txt == '🏆 Индивидуальные достижения':
photo = open('photo/pomoshnik/ID_Mag_bally.jpg', 'rb')
await bot.send_photo(message.from_user.id, photo)
photo = open('photo/pomoshnik/ID_Mag_kategorii.jpg', 'rb')
await bot.send_photo(message.from_user.id, photo)
#await bot.send_photo(message.from_user.id, 'AgACAgIAAxkBAAIJRGDSD6ugeSwIwxLuMyXGQjywMobpAAJZszEbMW6RSqXnyEXfpa6VIgoZpC4AAwEAAwIAA3MAAyuWAgABHwQ')
#await bot.send_photo(message.from_user.id, 'AgACAgIAAxkBAAIJe2DSD9HZEIUH3LdWPJeho6-wgzYLAAJaszEbMW6RSkIAAfseI6z5zd7V5p8uAAMBAAMCAANzAAONqgIAAR8E')
# await bot.send_photo(message.from_user.id, '')
elif txt == '📅 Расписание междисциплинарного экзамена (МДЭ)':
photo = open('photo/pomoshnik/pp/2.jpg', 'rb')
await bot.send_photo(message.from_user.id, photo)
#await bot.send_photo(message.from_user.id, 'AgACAgIAAxkBAAICUmDRBi1eUXiVWZkHJkNZVoY2grQjAAIttDEbrG6IShOOhQO4nL7kq_MBny4AAwEAAwIAA3MAA47iBQABHwQ')
# помощник > иностранный гражданин
elif txt == '💼 Поступление на бакалавриат':
await message.answer(f'Уточните, какую именно информацию Вы желаете получить?', reply_markup=kb.menu_1_7_2_1)
elif txt == '🎓 Поступление в магистратуру':
await message.answer(f'Уточните, какую именно информацию Вы желаете получить?', reply_markup=kb.menu_1_7_2_2)
# иностранец > бакалавриат
elif txt == '🗒 Документы \nдля поступления':
photo = open('photo/pomoshnik/dokumenty_inostrantsy.jpg', 'rb')
await bot.send_photo(message.from_user.id, photo)
#await bot.send_photo(message.from_user.id, 'AgACAgIAAxkBAAIJ5GDSEG_fDisgfte0KpIcAdUE2ojNAAJcszEbMW6RStsYAlu1O4_YUKmdqC4AAwEAAwIAA3MAAyMoAAIfBA')
elif txt == '🕐 Расписание вступительных испытаний (ВИ)':
photo = open('photo/pomoshnik/pp/1.jpg', 'rb')
await bot.send_photo(message.from_user.id, photo)
#await bot.send_photo(message.from_user.id, 'AgACAgIAAxkBAAICUWDRBhU-45aVPJ29ikuRWVWlw7GxAAIstDEbrG6ISqLRu6xJZlJpk4qQoS4AAwEAAwIAA3MAA6jZAwABHwQ')
elif txt == '🔓 Направления подготовки, по которым осуществляется прием иностранных граждан':
await message.answer(MESSAGES['inst_full_b'])
# иностранец > магистратура
elif txt == '🗒 Документы для поступления':
photo = open('photo/pomoshnik/dokumenty_inostrantsy.jpg', 'rb')
await bot.send_photo(message.from_user.id, photo)
#await bot.send_photo(message.from_user.id, 'AgACAgIAAxkBAAIJ5GDSEG_fDisgfte0KpIcAdUE2ojNAAJcszEbMW6RStsYAlu1O4_YUKmdqC4AAwEAAwIAA3MAAyMoAAIfBA')
elif txt == '🔓 Открытые для поступления иностранных граждан направления для подготовки':
await message.answer(MESSAGES['inst_full_m'])
elif txt == '🕐 Расписание междисциплинарного экзамена (МДЭ)':
photo = open('photo/pomoshnik/pp/2.jpg', 'rb')
await bot.send_photo(message.from_user.id, photo)
#await bot.send_photo(message.from_user.id, 'AgACAgIAAxkBAAICUmDRBi1eUXiVWZkHJkNZVoY2grQjAAIttDEbrG6IShOOhQO4nL7kq_MBny4AAwEAAwIAA3MAA47iBQABHwQ')
# помощник > клавиатура
elif txt == '❌ удалить все':
pr_edit.update_all(message.from_user.id)
await message.answer(f'Выберите предметы снова')
elif txt == 'математика':
pr_edit.update_math(message.from_user.id)
answer_message = pr_edit.check_predm(message.from_user.id)
await message.answer(answer_message, reply_markup=kb.inline_next)
elif txt == 'русский язык':
pr_edit.update_rus(message.from_user.id)
answer_message = pr_edit.check_predm(message.from_user.id)
await message.answer(answer_message, reply_markup=kb.inline_next)
elif txt == 'физика':
pr_edit.update_fiz(message.from_user.id)
answer_message = pr_edit.check_predm(message.from_user.id)
await message.answer(answer_message, reply_markup=kb.inline_next)
elif txt == 'информатика и ИКТ':
pr_edit.update_inf(message.from_user.id)
answer_message = pr_edit.check_predm(message.from_user.id)
await message.answer(answer_message, reply_markup=kb.inline_next)
elif txt == 'иностранный язык':
pr_edit.update_inostr(message.from_user.id)
answer_message = pr_edit.check_predm(message.from_user.id)
await message.answer(answer_message, reply_markup=kb.inline_next)
elif txt == 'обществознание':
pr_edit.update_obsh(message.from_user.id)
answer_message = pr_edit.check_predm(message.from_user.id)
await message.answer(answer_message, reply_markup=kb.inline_next)
elif txt == 'биология':
pr_edit.update_biol(message.from_user.id)
answer_message = pr_edit.check_predm(message.from_user.id)
await message.answer(answer_message, reply_markup=kb.inline_next)
# школьникам
elif txt == '👀 3D тур':
photo = open('photo/dop/360.jpg', 'rb')
await bot.send_photo(message.from_user.id, photo, MESSAGES['shk1'], reply_markup=kb.inline_s1)
#await bot.send_photo(message.from_user.id, 'AgACAgIAAxkBAAIBNWDRAdhnUTCES2ZRhNoVRG89roJgAAIgtDEbrG6ISk5uv-hSJ7i9CFzQqS4AAwEAAwIAA3MAA9isAAIfBA', MESSAGES['shk1'], reply_markup=kb.inline_s1)
elif txt == '🧠 Подготовительные курсы':
await message.answer(MESSAGES['shk2'], reply_markup=kb.inline_s2)
elif txt == '🚪 Дни открытых дверей':
await message.answer(MESSAGES['shk3'], reply_markup=kb.inline_s3)
# подробнее
# бакалавриат
elif txt == '/09_03_01':
photo = open('photo/predmeti/090301.jpg', 'rb')
await bot.send_photo(message.from_user.id, photo)
#await bot.send_photo(message.from_user.id, 'AgACAgIAAxkBAAPcYND8m85HtmqLnNn_IrvzzzXYOi0AAqmwMRso_4lK4mmpU2hTqqjdA4-hLgADAQADAgADcwADEuoDAAEfBA')
elif txt == '/09_03_02':
photo = open('photo/predmeti/090302.jpg', 'rb')
await bot.send_photo(message.from_user.id, photo)
#await bot.send_photo(message.from_user.id, 'AgACAgIAAxkBAAPeYND8wxjLIDl7iGmxA8x5WueeK8oAAquwMRso_4lKhX2WypenmZNFrQ2iLgADAQADAgADcwADtdgDAAEfBA')
elif txt == '/09_03_04':
photo = open('photo/predmeti/090304.jpg', 'rb')
await bot.send_photo(message.from_user.id, photo)
#await bot.send_photo(message.from_user.id, 'AgACAgIAAxkBAAPfYND8zTk79iL4Zr8lHWRCyAVpxFUAAqywMRso_4lKUFixuyiBbkYL1s6pLgADAQADAgADcwADYqUAAh8E')
elif txt == '/11_03_01':
photo = open('photo/predmeti/110301.jpg', 'rb')
await bot.send_photo(message.from_user.id, photo)
#await bot.send_photo(message.from_user.id, 'AgACAgIAAxkBAAPiYND89AiDQhJ7x_3ZdrOmnebmFhsAAq-wMRso_4lKn-qlZdWyR0TCkhqkLgADAQADAgADcwADNsACAAEfBA')
elif txt == '/12_03_03':
photo = open('photo/predmeti/120303.jpg', 'rb')
await bot.send_photo(message.from_user.id, photo)
#await bot.send_photo(message.from_user.id, 'AgACAgIAAxkBAAPnYND9eC2bSTUAAWLgtPc4G_LDKaFuAAK0sDEbKP-JSoeuek1zR8EXy1OTqS4AAwEAAwIAA3MAA6gcAAIfBA')
elif txt == '/20_03_01':
photo = open('photo/predmeti/200301.jpg', 'rb')
await bot.send_photo(message.from_user.id, photo)
#await bot.send_photo(message.from_user.id, 'AgACAgIAAxkBAAP3YND-haFVIMoWAAFUiA3d2qeFTRjhAALGsDEbKP-JSnNoCk9N9EOyAWKWqS4AAwEAAwIAA3MAAw0dAAIfBA')
elif txt == '/12_03_01':
photo = open('photo/predmeti/120301.jpg', 'rb')
await bot.send_photo(message.from_user.id, photo)
#await bot.send_photo(message.from_user.id, 'AgACAgIAAxkBAAPlYND9YzfRd3pTUqgYXUD_ZIbN9KwAArKwMRso_4lKfokVIOn0BIr8DZqiLgADAQADAgADcwADMa4DAAEfBA')
elif txt == '/12_03_02':
photo = open('photo/predmeti/120302.jpg', 'rb')
await bot.send_photo(message.from_user.id, photo)
#await bot.send_photo(message.from_user.id, 'AgACAgIAAxkBAAPmYND9byxm-jJa4fbO6c5Fls2OZy0AArOwMRso_4lKeT-h9oXS6zSKOKqpLgADAQADAgADcwAD3aUAAh8E')
elif txt == '/12_03_05':
photo = open('photo/predmeti/120305.jpg', 'rb')
await bot.send_photo(message.from_user.id, photo)
#await bot.send_photo(message.from_user.id, 'AgACAgIAAxkBAAPoYND9lw4rFNn08Fcj9ZEmHhJe8xQAArWwMRso_4lKjd1pEXMciFCgOY2pLgADAQADAgADcwADwh4AAh8E')
elif txt == '/13_03_01':
photo = open('photo/predmeti/130301.jpg', 'rb')
await bot.send_photo(message.from_user.id, photo)
#await bot.send_photo(message.from_user.id, 'AgACAgIAAxkBAAPrYND9xAUMAAHy2hKju4Y_zyMEX6sFAAK4sDEbKP-JSnxgWxAAAWiP8eTaL5suAAMBAAMCAANzAAOFjQYAAR8E')
elif txt == '/13_03_03':
photo = open('photo/predmeti/130303.jpg', 'rb')
await bot.send_photo(message.from_user.id, photo)
#await bot.send_photo(message.from_user.id, 'AgACAgIAAxkBAAPsYND9z-SU-LDAsx6Mwhw8K7lCS-AAArmwMRso_4lK66sTk47C6pNgOKqpLgADAQADAgADcwADRKQAAh8E')
elif txt == '/15_03_01':
photo = open('photo/predmeti/150301.jpg', 'rb')
await bot.send_photo(message.from_user.id, photo)
#await bot.send_photo(message.from_user.id, 'AgACAgIAAxkBAAPtYND92O0AAcKsNDiEb_DAyOnWQxi2AAK6sDEbKP-JSi6dZIo_kSw8m6GBoi4AAwEAAwIAA3MAA4rSAwABHwQ')
elif txt == '/15_03_02':
photo = open('photo/predmeti/150302.jpg', 'rb')
await bot.send_photo(message.from_user.id, photo)
#await bot.send_photo(message.from_user.id, 'AgACAgIAAxkBAAPuYND94RyxstEJq8kIvB1o8PkT7vkAAruwMRso_4lKBnDBxmcwfpZqXEyeLgADAQADAgADcwADPWAGAAEfBA')
elif txt == '/15_03_03':
photo = open('photo/predmeti/150303.jpg', 'rb')
await bot.send_photo(message.from_user.id, photo)
#await bot.send_photo(message.from_user.id, 'AgACAgIAAxkBAAPvYND-KSbPPB_ogl5qPNJ0yZxQMjgAAr2wMRso_4lK-16XBFHR8zu-9y6qLgADAQADAgADcwADk7AAAh8E')
elif txt == '/15_03_05':
photo = open('photo/predmeti/150305.jpg', 'rb')
await bot.send_photo(message.from_user.id, photo)
#await bot.send_photo(message.from_user.id, 'AgACAgIAAxkBAAPwYND-Mt9vg1N0s3LGbhoP7VXAmaYAAr6wMRso_4lKbcgsAAEQEjJ9hUOtqS4AAwEAAwIAA3MAA7GlAAIfBA')
elif txt == '/15_03_06':
photo = open('photo/predmeti/150306.jpg', 'rb')
await bot.send_photo(message.from_user.id, photo)
#await bot.send_photo(message.from_user.id, 'AgACAgIAAxkBAAPxYND-PBltAkYfLBS_z-UQesweLlAAAr-wMRso_4lKoihHzz97PHLBtxCiLgADAQADAgADcwAD3_UDAAEfBA')
elif txt == '/24_03_01':
photo = open('photo/predmeti/240301.jpg', 'rb')
await bot.send_photo(message.from_user.id, photo)
#await bot.send_photo(message.from_user.id, 'AgACAgIAAxkBAAP5YND-oMXbbOQlTbcnfN-o42UYErIAAsiwMRso_4lKGt2u1r6SU-1qaRGkLgADAQADAgADcwADgrMCAAEfBA')
elif txt == '/24_03_03':
photo = open('photo/predmeti/240303.jpg', 'rb')
await bot.send_photo(message.from_user.id, photo)
#await bot.send_photo(message.from_user.id, 'AgACAgIAAxkBAAP6YND-rx2gMbdDfnNvJvEK9Lx-HywAAsmwMRso_4lKJN_OvW7wl051p4ipLgADAQADAgADcwAD4CEAAh8E')
elif txt == '/24_03_05':
photo = open('photo/predmeti/240305.jpg', 'rb')
await bot.send_photo(message.from_user.id, photo)
#await bot.send_photo(message.from_user.id, 'AgACAgIAAxkBAAP7YND-uqIxmFAZ5-Rj1NqsUtB5bGkAAsqwMRso_4lK6rhPbkPLwf6oYLOpLgADAQADAgADcwADpBwAAh8E')
elif txt == '/27_03_01':
photo = open('photo/predmeti/270301.jpg', 'rb')
await bot.send_photo(message.from_user.id, photo)
#await bot.send_photo(message.from_user.id, 'AgACAgIAAxkBAAIBBGDQ_0rs8OvEHQUw-kGb6xHRTDPHAALTsDEbKP-JSnCm7gtF8XGlVsuKoi4AAwEAAwIAA3MAA_7iAwABHwQ')
elif txt == '/27_03_04':
photo = open('photo/predmeti/270304.jpg', 'rb')
await bot.send_photo(message.from_user.id, photo)
#await bot.send_photo(message.from_user.id, 'AgACAgIAAxkBAAIBBWDQ_1gL9upy30mPJKAmNDIl5c3TAALUsDEbKP-JSlMX5PVdRID_KVo3ny4AAwEAAwIAA3MAA0RcBQABHwQ')
elif txt == '/38_03_01':
photo = open('photo/predmeti/380301.jpg', 'rb')
await bot.send_photo(message.from_user.id, photo)
#await bot.send_photo(message.from_user.id, 'AgACAgIAAxkBAAIBCmDRAAGyVocaREENkteOM6Pu7u_bRwAC2rAxGyj_iUruW5OYacdtzMUQf58uAAMBAAMCAANzAAOe0AUAAR8E')
elif txt == '/38_03_02':
photo = open('photo/predmeti/380302.jpg', 'rb')
await bot.send_photo(message.from_user.id, photo)
#await bot.send_photo(message.from_user.id, 'AgACAgIAAxkBAAIBC2DRAAG-LtVQm40Tx_mVKeKo7FgM7QAC27AxGyj_iUqvhsBqz3UzF8YkH6QuAAMBAAMCAANzAAMjoAIAAR8E')
elif txt == '/38_03_03':
photo = open('photo/predmeti/380303.jpg', 'rb')
await bot.send_photo(message.from_user.id, photo)
#await bot.send_photo(message.from_user.id, 'AgACAgIAAxkBAAIBDGDRAAHLcvi46zmOKJVIvgJqqSR0tgAC3LAxGyj_iUpCHwXSp78TWMXV66kuAAMBAAMCAANzAAM8qQACHwQ')
elif txt == '/42_03_01':
photo = open('photo/predmeti/420301.jpg', 'rb')
await bot.send_photo(message.from_user.id, photo)
#await bot.send_photo(message.from_user.id, 'AgACAgIAAxkBAAIBEWDRAAH_livqfiwK-AkElffoamxMgAAC4bAxGyj_iUr31cuNoQOr83yxhKIuAAMBAAMCAANzAANT1gMAAR8E')
elif txt == '/45_03_03':
photo = open('photo/predmeti/450303.jpg', 'rb')
await bot.send_photo(message.from_user.id, photo)
#await bot.send_photo(message.from_user.id, 'AgACAgIAAxkBAAIBEmDRAQvNQonz9x8YAwrYXTkhsTrUAALisDEbKP-JSos0P7JKomeSeeIspC4AAwEAAwIAA3MABIoCAAEfBA')
# специалитет
elif txt == '/11_05_01':
photo = open('photo/predmeti/110501.jpg', 'rb')
await bot.send_photo(message.from_user.id, photo)
#await bot.send_photo(message.from_user.id, 'AgACAgIAAxkBAAPkYND9DDcMuj9OMy3yu1dxf-MTv60AArGwMRso_4lKVK0n2vih3Z_4sISiLgADAQADAgADcwADstoDAAEfBA')
elif txt == '/17_05_01':
photo = open('photo/predmeti/170501.jpg', 'rb')
await bot.send_photo(message.from_user.id, photo)
#await bot.send_photo(message.from_user.id, 'AgACAgIAAxkBAAP1YND-aSdz7C4O8A400T9z-Z4NwIQAAsOwMRso_4lKoTi7ZfAfHGUJuwakLgADAQADAgADcwADXqcCAAEfBA')
elif txt == '/17_05_02':
photo = open('photo/predmeti/170502.jpg', 'rb')
await bot.send_photo(message.from_user.id, photo)
#await bot.send_photo(message.from_user.id, 'AgACAgIAAxkBAAP2YND-exIGCRvi1aEdc5Yk5Ubc21kAAsWwMRso_4lK2oxb_nk57CF0lJuiLgADAQADAgADcwADWKUDAAEfBA')
elif txt == '/24_05_01':
photo = open('photo/predmeti/240501.jpg', 'rb')
await bot.send_photo(message.from_user.id, photo)
#await bot.send_photo(message.from_user.id, 'AgACAgIAAxkBAAP_YND-6O64UAVkVhkRY9kKp0QDB-8AAs6wMRso_4lKSpqJn_YEHziLuyOkLgADAQADAgADcwADWMkCAAEfBA')
elif txt == '/24_05_02':
photo = open('photo/predmeti/240502.jpg', 'rb')
await bot.send_photo(message.from_user.id, photo)
#await bot.send_photo(message.from_user.id, 'AgACAgIAAxkBAAIBAAFg0P7zWrPMH2-75y99VJMNQTLF8gACz7AxGyj_iUrm28bcNrArmfZQqaIuAAMBAAMCAANzAAMOzQMAAR8E')
elif txt == '/24_05_04':
photo = open('photo/predmeti/240504.jpg', 'rb')
await bot.send_photo(message.from_user.id, photo)
#await bot.send_photo(message.from_user.id, 'AgACAgIAAxkBAAIBAWDQ_wABoXV52E0MPPXNcwKnJfJnrAAC0LAxGyj_iUqAMK4Lka6wWQ5CpqIuAAMBAAMCAANzAAMD_wMAAR8E')
elif txt == '/27_05_01':
photo = open('photo/predmeti/270504.jpg', 'rb')
await bot.send_photo(message.from_user.id, photo)
#await bot.send_photo(message.from_user.id, 'AgACAgIAAxkBAAIBCGDRAAGcKyBxSqu53EAM4C0YlH7MKgAC2LAxGyj_iUovB1avJBykgfW_q6kuAAMBAAMCAANzAAOQHwACHwQ')
elif txt == '/24_05_05':
photo = open('photo/predmeti/240505.jpg', 'rb')
await bot.send_photo(message.from_user.id, photo)
#await bot.send_photo(message.from_user.id, 'AgACAgIAAxkBAAIBAmDQ_wqakn2vaBKU0v9U5XINsYOyAALRsDEbKP-JSrRB8K2dJ4KyAAGgAAGkLgADAQADAgADcwADQ48CAAEfBA')
elif txt == '/24_05_06':
photo = open('photo/predmeti/240506.jpg', 'rb')
await bot.send_photo(message.from_user.id, photo)
#await bot.send_photo(message.from_user.id, 'AgACAgIAAxkBAAIBA2DQ_0HfuqvyPYLZnjn1zH87zmYLAALSsDEbKP-JSkOG1NX_kTOnYwaPoS4AAwEAAwIAA3MAA_nwAwABHwQ')
elif txt == '/37_05_02':
photo = open('photo/predmeti/370502.jpg', 'rb')
await bot.send_photo(message.from_user.id, photo)
#await bot.send_photo(message.from_user.id, 'AgACAgIAAxkBAAIBCWDRAAGnG2Ooz9axjqGxjVwG0NEeGQAC2bAxGyj_iUqlE8rVD7tabZ-ZgJ8uAAMBAAMCAANzAAOA0QUAAR8E')
elif txt == '/45_05_01':
photo = open('photo/predmeti/450501.jpg', 'rb')
await bot.send_photo(message.from_user.id, photo)
#await bot.send_photo(message.from_user.id, 'AgACAgIAAxkBAAIBE2DRARZE46RntU6J5kzmerf_ddDaAALjsDEbKP-JSquL5eHcFWEWKBRWpC4AAwEAAwIAA3MAA1uiAgABHwQ')
# магистратура
elif txt == '/09_04_01':
photo = open('photo/predmeti/090401.jpg', 'rb')
await bot.send_photo(message.from_user.id, photo)
#await bot.send_photo(message.from_user.id, 'AgACAgIAAxkBAAPgYND81_UnP2vx_RjRMpG5uNuXg0EAAq2wMRso_4lKVxz6XRJhtnUq9JOiLgADAQADAgADcwADKq0DAAEfBA')
elif txt == '/09_04_04':
photo = open('photo/predmeti/090404.jpg', 'rb')
await bot.send_photo(message.from_user.id, photo)
#await bot.send_photo(message.from_user.id, 'AgACAgIAAxkBAAPhYND86a60NIjvIEGnQJCtCmfeN0QAAq6wMRso_4lKD2gyWG43aQGeMw-iLgADAQADAgADcwADps4DAAEfBA')
elif txt == '/11_04_01':
photo = open('photo/predmeti/110401.jpg', 'rb')
await bot.send_photo(message.from_user.id, photo)
#await bot.send_photo(message.from_user.id, 'AgACAgIAAxkBAAPjYND9AAGu1alxRZcER06vZknz7iTlAAKwsDEbKP-JSjh4r6isWcw3LONNni4AAwEAAwIAA3MAA2hpBgABHwQ')
elif txt == '/12_04_01':
photo = open('photo/predmeti/120401.jpg', 'rb')
await bot.send_photo(message.from_user.id, photo)
#await bot.send_photo(message.from_user.id, 'AgACAgIAAxkBAAPpYND9oC1leaDhzzNR-SWzNp_k2DQAArawMRso_4lKKQABjNjZaRRHpptXpC4AAwEAAwIAA3MAA8i4AgABHwQ')
elif txt == '/12_04_05':
photo = open('photo/predmeti/120405.jpg', 'rb')
await bot.send_photo(message.from_user.id, photo)
#await bot.send_photo(message.from_user.id, 'AgACAgIAAxkBAAPqYND9uDdAQ5lFBzrCnZ2JLuEPflYAArewMRso_4lKr59cWoGlu166WzefLgADAQADAgADcwAD01gFAAEfBA')
elif txt == '/15_04_03':
photo = open('photo/predmeti/150403.jpg', 'rb')
await bot.send_photo(message.from_user.id, photo)
#await bot.send_photo(message.from_user.id, 'AgACAgIAAxkBAAPyYND-RCjKGYGO-nel-Zac9B6G5WIAAsCwMRso_4lKzXvryIOKy5SeE5KhLgADAQADAgADcwAD7OMDAAEfBA')
elif txt == '/15_04_05':
photo = open('photo/predmeti/150405.jpg', 'rb')
await bot.send_photo(message.from_user.id, photo)
#await bot.send_photo(message.from_user.id, 'AgACAgIAAxkBAAPzYND-U2TZDM4UuNzMONur4SgeDPYAAsGwMRso_4lKgQX334AbVZwnvoeiLgADAQADAgADcwADpcwDAAEfBA')
elif txt == '/15_04_06':
photo = open('photo/predmeti/150406.jpg', 'rb')
await bot.send_photo(message.from_user.id, photo)
#await bot.send_photo(message.from_user.id, 'AgACAgIAAxkBAAP0YND-XhaE9ozueqQBKIs6DhPH9IwAAsKwMRso_4lKTjFM--lkF7kwJQyiLgADAQADAgADcwADfOYDAAEfBA')
elif txt == '/20_04_01':
photo = open('photo/predmeti/200401.jpg', 'rb')
await bot.send_photo(message.from_user.id, photo)
#await bot.send_photo(message.from_user.id, 'AgACAgIAAxkBAAP4YND-ksJfZ-EyFSEM4Db5l98NqxwAAsewMRso_4lKucDQpEuTUQJpM6OiLgADAQADAgADcwADmOoDAAEfBA')
elif txt == '/24_04_01':
photo = open('photo/predmeti/240401.jpg', 'rb')
await bot.send_photo(message.from_user.id, photo)
#await bot.send_photo(message.from_user.id, 'AgACAgIAAxkBAAP8YND-xNrgewt5RFxyXY6V5nwFh8QAAsuwMRso_4lKn_VXJkU24zJJkQeiLgADAQADAgADcwADe84DAAEfBA')
elif txt == '/24_04_03':
photo = open('photo/predmeti/240403.jpg', 'rb')
await bot.send_photo(message.from_user.id, photo)
#await bot.send_photo(message.from_user.id, 'AgACAgIAAxkBAAP9YND-1OkpgD5eQQwneBq3Ud5205MAAsywMRso_4lKPeLDrL7v7SudkxqkLgADAQADAgADcwADu7QCAAEfBA')
elif txt == '/24_04_05':
photo = open('photo/predmeti/240405.jpg', 'rb')
await bot.send_photo(message.from_user.id, photo)
#await bot.send_photo(message.from_user.id, 'AgACAgIAAxkBAAP-YND-3qSOLWsWMquc8Kw6sZaAPYAAAs2wMRso_4lK8jGGqq0sLoTTcDSbLgADAQADAgADcwAD6aIGAAEfBA')
elif txt == '/27_04_01':
photo = open('photo/predmeti/270401.jpg', 'rb')
await bot.send_photo(message.from_user.id, photo)
#await bot.send_photo(message.from_user.id, 'AgACAgIAAxkBAAIBBmDQ_2PD-Yf03S0STaqGa7r7D9iXAALVsDEbKP-JSpf2uE1X-TRon3XPoi4AAwEAAwIAA3MAA8ilAwABHwQ')
elif txt == '/27_04_04':
photo = open('photo/predmeti/270404.jpg', 'rb')
await bot.send_photo(message.from_user.id, photo)
#await bot.send_photo(message.from_user.id, 'AgACAgIAAxkBAAIGpmDSCXsmDylQZQ6rGLqE1xC71yAcAAKYtDEbP96RShBV16TZNcl85WWJni4AAwEAAwIAA3MAA9pnBgABHwQ')
elif txt == '/38_04_02':
photo = open('photo/predmeti/380402.jpg', 'rb')
await bot.send_photo(message.from_user.id, photo)
#await bot.send_photo(message.from_user.id, 'AgACAgIAAxkBAAIBDWDRAAHX-XQ7QR2mQeakukBiv9P2ZAAC3bAxGyj_iUqp6DO1wAT6p9lfs6kuAAMBAAMCAANzAAO9HAACHwQ')
elif txt == '/38_04_03':
photo = open('photo/predmeti/380403.jpg', 'rb')
await bot.send_photo(message.from_user.id, photo)
#await bot.send_photo(message.from_user.id, 'AgACAgIAAxkBAAIBDmDRAAHhyC3mxEu_i4K6JYrO15vLwwAC3rAxGyj_iUqZD7CIlPns4TBhlqkuAAMBAAMCAANzAAPTHAACHwQ')
elif txt == '/38_04_04':
photo = open('photo/predmeti/380404.jpg', 'rb')
await bot.send_photo(message.from_user.id, photo)
#await bot.send_photo(message.from_user.id, 'AgACAgIAAxkBAAIBD2DRAAHrKNaUdoS-VTuEOU7QhqrPvgAC37AxGyj_iUr9Ok-NxcJjL9qWgJ8uAAMBAAMCAANzAAMCyAUAAR8E')
elif txt == '/41_04_04':
photo = open('photo/predmeti/410404.jpg', 'rb')
await bot.send_photo(message.from_user.id, photo)
#await bot.send_photo(message.from_user.id, 'AgACAgIAAxkBAAIBEGDRAAH2cen3B-LX-mP5r7P50FvRYAAC4LAxGyj_iUrLH60uNHdSpztQzakuAAMBAAMCAANzAAMKsgACHwQ')
else:
await message.reply(f'Команда не найдена.\nИспользуйте - /start')
return
#----------------------------------------
# inline запросы
#----------------------------------------
@dp.callback_query_handler(text_contains='helper_')
async def nazad_callback(call: types.CallbackQuery):
if call.data and call.data.startswith("helper_"):
code = call.data[-1:]
if code.isdigit():
code = int(code)
if code == 1:
await call.message.edit_text(f'Поиск...')
answer_message = thepoisk.load_predm(call.from_user.id)
await call.message.answer(answer_message)
await call.message.edit_text(f'Для того чтобы узнать подробнее о специальности/направлении подготовки, нажмите на его шифр.')
if code == 2:
await call.answer(text='Публикация конкурсных списков и траектории осуществляется 2 августа согласно Правилам приема', show_alert=True)
#----------------------------------------
if __name__ == '__main__':
executor.start_polling(dp, skip_updates=True)