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.
We have
Update.effective_userfor the sender of the message. This attribute however misses out on the anonymous sender info provided inMessage.sender_chat,MessageReactionUpdated.action_chatandPoll.voter_chat.I would propose adding a new shortcut to the
Updateclass,effective_sender. It either returns the sender chats above or effective_user, if they are not set.