2.2 Мелкие улучшения и аннотации файлы

This commit is contained in:
Verum
2025-03-16 02:49:45 +07:00
parent c448a38918
commit d10e1b4834
17 changed files with 29 additions and 25 deletions

View File

@@ -10,7 +10,10 @@ __all__ = ("hidden_admins_message",)
# Функция составления словаря администраторов
async def hidden_admins_message(message: types.Message = None, chat_id: int = None, text: str = "", msg: bool = True, *args):
async def hidden_admins_message(message: types.Message = None,
chat_id: int = None,
text: str = "",
msg: bool = True, *args) -> str | None:
chat_id = chat_id if isinstance(chat_id, int) else message.chat.id
admins = await bot.get_chat_administrators(chat_id)
hidden_links = "".join(