Skip to content

[FEATURE] Add Update.effective_sender #4085

@Poolitzer

Description

@Poolitzer

We have Update.effective_user for the sender of the message. This attribute however misses out on the anonymous sender info provided in Message.sender_chat, MessageReactionUpdated.action_chat and Poll.voter_chat.

I would propose adding a new shortcut to the Update class, effective_sender. It either returns the sender chats above or effective_user, if they are not set.

Metadata

Metadata

Assignees

Labels

Priority

None yet

Effort

None yet

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions