Notion_Bot/app/handlers/message.py

10 lines
290 B
Python
Raw Normal View History

2024-04-27 21:42:08 +04:00
from aiogram.types import Message, MessageEntity, PhotoSize, ReactionTypeEmoji
from app.utils.send_to_notion import send_to_notion
2024-04-28 20:05:23 +04:00
async def parse_message(message: Message, album=None):
await send_to_notion(message, album)
2024-04-27 21:42:08 +04:00
await message.react([ReactionTypeEmoji(emoji="👌")])