mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2026-01-03 14:04: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 ..object import Object
|
||||||
from pyrogram import enums, raw, types
|
from pyrogram import enums, raw, types
|
||||||
from typing import Union
|
from typing import Union, List
|
||||||
|
|
||||||
class RequestedChats(Object):
|
class RequestedChats(Object):
|
||||||
"""Contains information about a requested chats.
|
"""Contains information about requested chats.
|
||||||
|
|
||||||
Parameters:
|
Parameters:
|
||||||
button_id (``int``):
|
button_id (``int``):
|
||||||
|
|
@ -36,8 +36,8 @@ class RequestedChats(Object):
|
||||||
def __init__(
|
def __init__(
|
||||||
self,
|
self,
|
||||||
button_id: int,
|
button_id: int,
|
||||||
chats: list["types.RequestedChat"] = None,
|
chats: List["types.RequestedChat"] = None,
|
||||||
users: list["types.RequestedUser"] = None
|
users: List["types.RequestedUser"] = None
|
||||||
):
|
):
|
||||||
super().__init__()
|
super().__init__()
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue