PagerMaid_Plugins_Pyro/print_official_notifications/main.py

13 lines
386 B
Python
Raw Permalink Normal View History

from pagermaid import logs
from pagermaid.enums import Message
from pagermaid.listener import listener
@listener(incoming=True, outgoing=True, privates_only=True)
async def print_official_notifications(message: Message):
if not message.from_user.is_verified:
return
2023-07-01 12:18:58 +00:00
logs.info(
f"Official notification from {message.from_user.first_name}: {message.text}"
)