Skip to content

Commit

Permalink
Pyrofork: fix birthday
Browse files Browse the repository at this point in the history
Signed-off-by: wulan17 <wulan17@nusantararom.org>
  • Loading branch information
wulan17 committed Apr 6, 2024
1 parent 0b9e669 commit 20ad2c8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pyrogram/types/user_and_chats/chat.py
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,8 @@ async def _parse_full(client, chat_full: Union[raw.types.messages.ChatFull, raw.
parsed_chat.bio = full_user.about
parsed_chat.folder_id = getattr(full_user, "folder_id", None)
parsed_chat.business_info = types.BusinessInfo._parse(client, full_user, users)
parsed_chat.birthday = types.Birthday._parse(getattr(full_user, "birthday", None))
birthday = getattr(full_user, "birthday", None)
parsed_chat.birthday = types.Birthday._parse(birthday) if birthday is not None else None
personal_chat = await client.invoke(
raw.functions.channels.GetChannels(
id=[await client.resolve_peer(utils.get_channel_id(full_user.personal_channel_id))]
Expand Down

0 comments on commit 20ad2c8

Please sign in to comment.