FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Add `full_name` property to `User` and `Chat` objects by alissonlauffer · Pull Request #1194 · pyrogram/pyrogram · GitHub

This repository was archived by the owner on Dec 23, 2024. It is now read-only.
/ pyrogram Public archive

Add full_name property to User and Chat objects - #1194

Open
alissonlauffer wants to merge 1 commit into
pyrogram:masterfrom
alissonlauffer:full-name-property
Open

Add full_name property to User and Chat objects#1194
alissonlauffer wants to merge 1 commit into
pyrogram:masterfrom
alissonlauffer:full-name-property

Conversation

Copy link
Copy Markdown
Contributor

This PR adds support for the full_name property for the User and Chat objects (since both have first_name and last_name properties).

Though I'm not sure if I should fallback to self.title inside the Chat object or just return None straightforward (the property could become a shortcut to get full names for all chat types, like a name property). Suggestions are welcome.

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant


Back | FazBrowse Home | New Git URL