Skip to content

[FEATURE] convenience property for displaying name of Chat object #3480

@Trifase

Description

@Trifase

What kind of feature are you missing? Where do you notice a shortcoming of PTB?

Because Chat objects can be private or groups/user/channels, one needs to check the type every time before using the appropriate property (Chat.full_name or Chat.title respectively). It would be nice to have a conveniente property that does this automatically

Describe the solution you'd like

I propose a convenience property that return Chat.full_name if the chat.type is private or Chat.title otherwise.

Describe alternatives you've considered

No response

Additional context

No response

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions