2025-01-05 02:50:54 +03:00
|
|
|
|
# Импорт сторонних модулей
|
|
|
|
|
from aiogram import F
|
|
|
|
|
from aiogram.types import CallbackQuery, FSInputFile
|
|
|
|
|
from aiogram.types import InputMediaPhoto
|
|
|
|
|
|
|
|
|
|
# Импорт модулей приложения
|
|
|
|
|
from . import dp
|
|
|
|
|
|
|
|
|
|
IMAGE = './assets/actions.jpg'
|
2025-01-05 03:19:16 +03:00
|
|
|
|
END_MSG = 'Попробуй выполнить команду `/start` ещё раз, чтобы посмотреть на другой результат 😉\n\n🎲 Они выпадают случайным образом\\!'
|
2025-01-05 02:50:54 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@dp.callback_query(F.data == 'action_gift')
|
|
|
|
|
async def action_gift(callback: CallbackQuery) -> None:
|
2025-01-05 03:19:16 +03:00
|
|
|
|
msg = 'Спасибо за подарок 🤭\n\n' 'Но я принимаю только ' '⛽ нефть ' '🥃 алкоголь ' 'и 🍫 шоколадки\n' '\n'
|
2025-01-05 02:50:54 +03:00
|
|
|
|
msg += END_MSG
|
|
|
|
|
|
|
|
|
|
await callback.message.edit_media(InputMediaPhoto(media=FSInputFile(path='./assets/gift.jpg'), caption=msg))
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@dp.callback_query(F.data == 'action_poo')
|
|
|
|
|
async def action_poo(callback: CallbackQuery) -> None:
|
|
|
|
|
msg = 'Я увернулся 🫣\n\n'
|
|
|
|
|
msg += END_MSG
|
|
|
|
|
|
|
|
|
|
await callback.message.edit_media(InputMediaPhoto(media=FSInputFile(path='./assets/poo.jpg'), caption=msg))
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@dp.callback_query(F.data == 'action_caress')
|
|
|
|
|
async def action_caress(callback: CallbackQuery) -> None:
|
|
|
|
|
msg = '🤤\n\n'
|
|
|
|
|
msg += END_MSG
|
|
|
|
|
|
|
|
|
|
await callback.message.edit_media(InputMediaPhoto(media=FSInputFile(path='./assets/caress.jpg'), caption=msg))
|