mirror of
https://github.com/TeamPGM/pyrogram.git
synced 2024-11-16 04:35:24 +00:00
Add missing optional to some methods description
This commit is contained in:
parent
5c08159841
commit
c14fc6fb26
@ -31,7 +31,7 @@ class GetChatInviteLink:
|
||||
) -> "types.ChatInviteLink":
|
||||
"""Get detailed information about a chat invite link.
|
||||
|
||||
.. include:: /_includes/usable-by/users-bots.rst
|
||||
.. include:: /_includes/usable-by/users.rst
|
||||
|
||||
Parameters:
|
||||
chat_id (``int`` | ``str``):
|
||||
|
@ -40,6 +40,9 @@ class GiftCode(Object):
|
||||
Identifier of gift code.
|
||||
You can combine it with `t.me/giftcode/{slug}`
|
||||
to get link for this gift.
|
||||
|
||||
mention (``str``, *property*):
|
||||
Generate a link to this gift code.
|
||||
"""
|
||||
|
||||
def __init__(
|
||||
|
@ -64,13 +64,13 @@ class Chat(Object):
|
||||
is_deactivated (``bool``, *optional*):
|
||||
True, if this chat has been flagged for deactivated.
|
||||
|
||||
is_support (``bool``):
|
||||
is_support (``bool``, *optional*):
|
||||
True, if this chat is part of the Telegram support team. Users and bots only.
|
||||
|
||||
is_stories_hidden (``bool``):
|
||||
is_stories_hidden (``bool``, *optional*):
|
||||
True, if this chat has hidden stories.
|
||||
|
||||
is_stories_unavailable (``bool``):
|
||||
is_stories_unavailable (``bool``, *optional*):
|
||||
True, if this chat stories is unavailable.
|
||||
|
||||
title (``str``, *optional*):
|
||||
|
@ -100,13 +100,13 @@ class User(Object, Update):
|
||||
is_premium (``bool``, *optional*):
|
||||
True, if this user is a premium user.
|
||||
|
||||
is_close_friend (``bool``):
|
||||
is_close_friend (``bool``, *optional*):
|
||||
True, if this user is a close friend.
|
||||
|
||||
is_stories_hidden (``bool``):
|
||||
is_stories_hidden (``bool``, *optional*):
|
||||
True, if this user has hidden stories.
|
||||
|
||||
is_stories_unavailable (``bool``):
|
||||
is_stories_unavailable (``bool``, *optional*):
|
||||
True, if this chat stories is unavailable.
|
||||
|
||||
first_name (``str``, *optional*):
|
||||
|
Loading…
Reference in New Issue
Block a user