From 8aff5d7f4d4acffeb5c343a793ea0cb3a60371dd Mon Sep 17 00:00:00 2001 From: lyteloli Date: Tue, 2 Jun 2020 14:33:26 +0300 Subject: [PATCH] Added fields to Chat --- aiogram/api/types/chat.py | 2 +- docs/api/types/chat.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/aiogram/api/types/chat.py b/aiogram/api/types/chat.py index d9eb9f99..79612193 100644 --- a/aiogram/api/types/chat.py +++ b/aiogram/api/types/chat.py @@ -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. """ diff --git a/docs/api/types/chat.md b/docs/api/types/chat.md index 1275234f..1549936e 100644 --- a/docs/api/types/chat.md +++ b/docs/api/types/chat.md @@ -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. |