First commit

This commit is contained in:
2026-01-23 04:45:55 +07:00
commit 0b251c5967
118 changed files with 9580 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
from aiogram.types import Message
from aiogram.utils.markdown import hide_link
from bot import bot
__all__ = ("hidden_admins_message",)
async def hidden_admins_message(message: Message,
text: str = "") -> str:
"""
Формирует текст с упоминанием всех админов через скрытые ссылки.
"""
admins = await bot.get_chat_administrators(message.chat.id)
hidden_links: str = "".join(
hide_link(f"tg://user?id={admin.user.id}")
for admin in admins if not admin.user.is_bot
)
return f"{hidden_links}{text}"