Merge pull request #88 from Sahidmalik001/patch-1

Fix error in `RequestedChats` class parsing method  Corrected the par…
This commit is contained in:
2024-08-03 01:02:47 +07:00 committed by GitHub
commit f030f00e9d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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__()