Type of the callback context.
Return value type.
Constructs a new ChatMemberHandler.
Type of the callback context.
Return value type.
Function invoked when the update matches.
Type filter mask (CHAT_MEMBER, MY_CHAT_MEMBER, or ANY).
ProtectedcallbackThe underlying callback function to invoke on match.
ReadonlychatFilter mask specifying which chat member updates to handle.
Static ReadonlyANYTarget any chat member update
Static ReadonlyCHAT_Target only member updates of other users (chat_member)
Static ReadonlyMY_Target only updates for the bot itself (my_chat_member)
Checks whether the update matches the requested chat member types.
The update to test.
true if update matches.
Handler for chat membership changes (
chat_memberandmy_chat_memberupdates).Example