mirror of
https://github.com/pyrogram/pyrogram
synced 2025-08-29 05:18:10 +00:00
Update Chat type
This commit is contained in:
parent
3d2029e9ea
commit
caf1dea227
@ -1,3 +1,6 @@
|
|||||||
|
from . import Message, ChatPhoto
|
||||||
|
|
||||||
|
|
||||||
class Chat:
|
class Chat:
|
||||||
def __init__(self,
|
def __init__(self,
|
||||||
id: int,
|
id: int,
|
||||||
@ -7,10 +10,22 @@ class Chat:
|
|||||||
first_name: str = None,
|
first_name: str = None,
|
||||||
last_name: str = None,
|
last_name: str = None,
|
||||||
all_members_are_administrators: bool = None,
|
all_members_are_administrators: bool = None,
|
||||||
photo=None,
|
photo: ChatPhoto = None,
|
||||||
description: str = None,
|
description: str = None,
|
||||||
invite_link: str = None,
|
invite_link: str = None,
|
||||||
pinned_message=None,
|
pinned_message: Message = None,
|
||||||
sticker_set_name: str = None,
|
sticker_set_name: str = None,
|
||||||
can_set_sticker_set=None):
|
can_set_sticker_set: bool = None):
|
||||||
...
|
self.id = id
|
||||||
|
self.type = type
|
||||||
|
self.title = title
|
||||||
|
self.username = username
|
||||||
|
self.first_name = first_name
|
||||||
|
self.last_name = last_name
|
||||||
|
self.all_members_are_administrators = all_members_are_administrators
|
||||||
|
self.photo = photo
|
||||||
|
self.description = description
|
||||||
|
self.invite_link = invite_link
|
||||||
|
self.pinned_message = pinned_message
|
||||||
|
self.sticker_set_name = sticker_set_name
|
||||||
|
self.can_set_sticker_set = can_set_sticker_set
|
||||||
|
Loading…
x
Reference in New Issue
Block a user