Added fields to Chat

This commit is contained in:
lyteloli 2020-06-02 14:33:26 +03:00
parent 864b511a16
commit 8aff5d7f4d
2 changed files with 2 additions and 2 deletions

View file

@ -54,7 +54,7 @@ class Chat(TelegramObject):
"""True, if the bot can change the group sticker set. Returned only in getChat."""
@property
def full_name(self) -> str:
def full_name(self) -> Optional[str]:
"""
Get user's full name for private chats and chat title for groups/channels.
"""

View file

@ -29,7 +29,7 @@ This object represents a chat.
| Name | Type | Description |
| - | - | - |
| `full_name` | `#!python str` | User's full name for private chats and chat title for groups/channels. |
| `full_name` | `#!python Optional[str]` | User's full name for private chats and chat title for groups/channels. |
| `mention` | `#!python Optional[str]` | Mention if a Chat has a username, or get full name if this is a Private Chat, otherwise None is returned. |
| `user_url` | `#!python str` | User's url (only for private chats!). URL works only if user doesn't have forward privacy enabled. |