mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2026-01-09 08:14:50 +00:00
Update emoji_status.py
This commit is contained in:
parent
a4b3e3ae28
commit
5c3bc3b696
1 changed files with 15 additions and 14 deletions
|
|
@ -22,6 +22,7 @@ from typing import Optional
|
||||||
|
|
||||||
import pyrogram
|
import pyrogram
|
||||||
from pyrogram import raw, utils
|
from pyrogram import raw, utils
|
||||||
|
|
||||||
from ..object import Object
|
from ..object import Object
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -29,7 +30,7 @@ class EmojiStatus(Object):
|
||||||
"""A user emoji status.
|
"""A user emoji status.
|
||||||
|
|
||||||
Parameters:
|
Parameters:
|
||||||
custom_emoji_id (``int``):
|
custom_emoji_id (``int``, *optional*):
|
||||||
Custom emoji id.
|
Custom emoji id.
|
||||||
|
|
||||||
until_date (:py:obj:`~datetime.datetime`, *optional*):
|
until_date (:py:obj:`~datetime.datetime`, *optional*):
|
||||||
|
|
@ -37,25 +38,25 @@ class EmojiStatus(Object):
|
||||||
|
|
||||||
title (``str``, *optional*):
|
title (``str``, *optional*):
|
||||||
Title of the collectible.
|
Title of the collectible.
|
||||||
|
|
||||||
collectible_id (``int``, *optional*):
|
gift_id (``int``, *optional*):
|
||||||
Collectible id.
|
Gift collectible id.
|
||||||
|
|
||||||
name (``str``, *optional*):
|
name (``str``, *optional*):
|
||||||
Name of the collectible.
|
Name of the collectible.
|
||||||
|
|
||||||
pattern_custom_emoji_id (``int``, *optional*):
|
pattern_custom_emoji_id (``int``, *optional*):
|
||||||
Pattern emoji id.
|
Pattern emoji id.
|
||||||
|
|
||||||
center_color (``int``, *optional*):
|
center_color (``int``, *optional*):
|
||||||
Center color of the collectible emoji in decimal format.
|
Center color of the collectible emoji in decimal format.
|
||||||
|
|
||||||
edge_color (``int``, *optional*):
|
edge_color (``int``, *optional*):
|
||||||
Edge color of the collectible emoji in decimal format.
|
Edge color of the collectible emoji in decimal format.
|
||||||
|
|
||||||
pattern_color (``int``, *optional*):
|
pattern_color (``int``, *optional*):
|
||||||
Pattern color of the collectible emoji in decimal format.
|
Pattern color of the collectible emoji in decimal format.
|
||||||
|
|
||||||
text_color (``int``, *optional*):
|
text_color (``int``, *optional*):
|
||||||
Text color of the collectible emoji in decimal format.
|
Text color of the collectible emoji in decimal format.
|
||||||
"""
|
"""
|
||||||
|
|
@ -64,10 +65,10 @@ class EmojiStatus(Object):
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
client: "pyrogram.Client" = None,
|
client: "pyrogram.Client" = None,
|
||||||
custom_emoji_id: int,
|
custom_emoji_id: Optional[int] = None,
|
||||||
|
gift_id: Optional[int] = None,
|
||||||
until_date: Optional[datetime] = None,
|
until_date: Optional[datetime] = None,
|
||||||
title: Optional[str] = None,
|
title: Optional[str] = None,
|
||||||
collectible_id: Optional[int] = None,
|
|
||||||
name: Optional[str] = None,
|
name: Optional[str] = None,
|
||||||
pattern_custom_emoji_id: Optional[int] = None,
|
pattern_custom_emoji_id: Optional[int] = None,
|
||||||
center_color: Optional[int] = None,
|
center_color: Optional[int] = None,
|
||||||
|
|
@ -78,9 +79,9 @@ class EmojiStatus(Object):
|
||||||
super().__init__(client)
|
super().__init__(client)
|
||||||
|
|
||||||
self.custom_emoji_id = custom_emoji_id
|
self.custom_emoji_id = custom_emoji_id
|
||||||
|
self.gift_id = gift_id
|
||||||
self.until_date = until_date
|
self.until_date = until_date
|
||||||
self.title = title
|
self.title = title
|
||||||
self.collectible_id = collectible_id
|
|
||||||
self.name = name
|
self.name = name
|
||||||
self.pattern_custom_emoji_id = pattern_custom_emoji_id
|
self.pattern_custom_emoji_id = pattern_custom_emoji_id
|
||||||
self.center_color = center_color
|
self.center_color = center_color
|
||||||
|
|
@ -124,4 +125,4 @@ class EmojiStatus(Object):
|
||||||
return raw.types.EmojiStatus(
|
return raw.types.EmojiStatus(
|
||||||
document_id=self.custom_emoji_id,
|
document_id=self.custom_emoji_id,
|
||||||
until=utils.datetime_to_timestamp(self.until_date)
|
until=utils.datetime_to_timestamp(self.until_date)
|
||||||
)
|
)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue