-
-
Notifications
You must be signed in to change notification settings - Fork 107
Description
I have a bot that needs a reliable "member added to chat id" event that works in all cases. I currently use "chat modified", but that fires also in other cases, I would like to have a more specific event for this case to re-send my "welcome message".
workaround idea
The closest you can currently get to a more specific event is to listen to incoming "member added"-system-messages and also to "secure join progress 1000 events", because secure join doesn't trigger a member added message.
But the problem with the secure join events is that you only get a contact id, not which chat was joined. #7181 adds the chat type as property to the event, but it is not possible to easily get the chat id in that event, especially on other devices on multi device setups. (#7181 (comment))
Anyways this workaround would still be bad bot developer UX, even if it worked, so I propose that we should add a new "member added to chat id" event for bots that is emitted in all cases.