I'm not sure why. Maybe it's because RegisterHandlerMatchFunc does not set the handlerType field. Maybe it's because findHandler is called by bot.ProcessUpdate only for non-empty Message and CallbackQuery, not for MyChatMember. Or maybe I'm doing something wrong.
To reproduce this, create a bot instance with a default handler, register any function with RegisterHandlerMatchFunc, and try to handle "Delete and block".
Hi, I have the following function to handle unsubscriptions:
However, it doesn't work with the active default handler, because this check isn't even called.
I'm not sure why. Maybe it's because
RegisterHandlerMatchFunc
does not set thehandlerType
field. Maybe it's becausefindHandler
is called bybot.ProcessUpdate
only for non-emptyMessage
andCallbackQuery
, not forMyChatMember
. Or maybe I'm doing something wrong.To reproduce this, create a bot instance with a default handler, register any function with RegisterHandlerMatchFunc, and try to handle "Delete and block".