Add missing optional to some methods description

This commit is contained in:
KurimuzonAkuma 2023-12-25 21:50:03 +03:00
parent 5c08159841
commit c14fc6fb26
4 changed files with 10 additions and 7 deletions

View File

@ -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``):

View File

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

View File

@ -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*):

View File

@ -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*):