mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
Added fields to Chat
This commit is contained in:
parent
864b511a16
commit
8aff5d7f4d
2 changed files with 2 additions and 2 deletions
|
|
@ -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.
|
||||
"""
|
||||
|
|
|
|||
|
|
@ -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. |
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue