diff --git a/pyrogram/client/ext/utils.py b/pyrogram/client/ext/utils.py index a2f1c3db..696174a7 100644 --- a/pyrogram/client/ext/utils.py +++ b/pyrogram/client/ext/utils.py @@ -215,7 +215,7 @@ def parse_channel_chat(channel: types.Channel) -> pyrogram_types.Chat: title=channel.title, username=getattr(channel, "username", None), photo=parse_chat_photo(getattr(channel, "photo", None)), - restriction_reason=getattr(channel, "restriction_reason") + restriction_reason=getattr(channel, "restriction_reason", None) )