Fix inline

pull/1/head
hikariatama 2023-03-06 12:24:23 +00:00
parent 16fcecd0bd
commit 53ba6577e8
1 changed files with 6 additions and 1 deletions

View File

@ -351,7 +351,12 @@ class SecurityManager:
is_channel = False
if message.is_channel and not message.is_group and message.edit_date:
if (
message
and message.is_channel
and not message.is_group
and message.edit_date
):
async for event in self._client.iter_admin_log(
utils.get_chat_id(message),
limit=10,