Добавлен обработчик события добавления реакции
Этот коммит содержится в:
родитель
6b9a073457
Коммит
885aaa850a
12
bot/main.py
12
bot/main.py
@ -4,7 +4,7 @@ from aiogram import Bot, Dispatcher
|
|||||||
from aiogram.client.default import DefaultBotProperties
|
from aiogram.client.default import DefaultBotProperties
|
||||||
from aiogram.enums import ParseMode
|
from aiogram.enums import ParseMode
|
||||||
from aiogram.filters import CommandStart
|
from aiogram.filters import CommandStart
|
||||||
from aiogram.types import User, Message, PollAnswer, InputPollOption
|
from aiogram.types import User, Message, MessageReactionUpdated, PollAnswer, InputPollOption
|
||||||
from apscheduler.schedulers.asyncio import AsyncIOScheduler
|
from apscheduler.schedulers.asyncio import AsyncIOScheduler
|
||||||
|
|
||||||
import config
|
import config
|
||||||
@ -173,9 +173,17 @@ async def get_poll_answer(
|
|||||||
break
|
break
|
||||||
|
|
||||||
|
|
||||||
|
@dp.message_reaction()
|
||||||
|
async def get_message_reaction(
|
||||||
|
message_reaction: MessageReactionUpdated,
|
||||||
|
):
|
||||||
|
pass
|
||||||
|
|
||||||
|
|
||||||
async def on_startup(
|
async def on_startup(
|
||||||
dispatcher: Dispatcher,
|
dispatcher: Dispatcher,
|
||||||
):
|
):
|
||||||
|
pass
|
||||||
# scheduler.add_job(
|
# scheduler.add_job(
|
||||||
# func=send_mood_poll,
|
# func=send_mood_poll,
|
||||||
# trigger='cron',
|
# trigger='cron',
|
||||||
@ -197,7 +205,7 @@ async def on_startup(
|
|||||||
# hour=23,
|
# hour=23,
|
||||||
# minute=19,
|
# minute=19,
|
||||||
# )
|
# )
|
||||||
scheduler.start()
|
# scheduler.start()
|
||||||
|
|
||||||
|
|
||||||
dp.startup.register(on_startup)
|
dp.startup.register(on_startup)
|
||||||
|
Загрузка…
Ссылка в новой задаче
Block a user