← 返回首页
Add `full_name` property to `User` and `Chat` objects by alissonlauffer · Pull Request #1194 · pyrogram/pyrogram · GitHub
Skip to content

Navigation Menu

Toggle navigation
Sign in
Appearance settings
Search or jump to...

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Include my email address so I can be contacted

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Resetting focus
This repository was archived by the owner on Dec 23, 2024. It is now read-only.

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.

meybj pushed a commit to meybj/pyrogram that referenced this pull request Aug 12, 2023
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

Footer

© 2026 GitHub, Inc.