mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2025-12-29 20:14:51 +00:00
Fix error in RequestedChats class parsing method Corrected the parsing logic in _parse method to handle different types of peer objects. Updated list handling for chats and users to ensure they are correctly populated.
This commit is contained in:
parent
69179879fc
commit
1abd0673b7
1 changed files with 4 additions and 4 deletions
|
|
@ -18,10 +18,10 @@
|
|||
|
||||
from ..object import Object
|
||||
from pyrogram import enums, raw, types
|
||||
from typing import Union
|
||||
from typing import Union, List
|
||||
|
||||
class RequestedChats(Object):
|
||||
"""Contains information about a requested chats.
|
||||
"""Contains information about requested chats.
|
||||
|
||||
Parameters:
|
||||
button_id (``int``):
|
||||
|
|
@ -36,8 +36,8 @@ class RequestedChats(Object):
|
|||
def __init__(
|
||||
self,
|
||||
button_id: int,
|
||||
chats: list["types.RequestedChat"] = None,
|
||||
users: list["types.RequestedUser"] = None
|
||||
chats: List["types.RequestedChat"] = None,
|
||||
users: List["types.RequestedUser"] = None
|
||||
):
|
||||
super().__init__()
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue