Правки по ruff + mypy

This commit is contained in:
2025-07-25 00:52:16 +03:00
parent 8f93cf36e4
commit 354c296fed
41 changed files with 166 additions and 96 deletions

View File

@@ -38,7 +38,10 @@ class DeletePinMessage(BaseConnection):
Returns:
DeletedPinMessage: Результат операции удаления закреплённого сообщения.
"""
assert self.bot is not None
if self.bot is None:
raise RuntimeError('Bot не инициализирован')
return await super().request(
method=HTTPMethod.DELETE,
path=ApiPath.CHATS + '/' + str(self.chat_id) + ApiPath.PIN,