Get user from chat_boost
with source ChatBoostSourcePremium
#1472
Labels
enhancement
Make it better!
chat_boost
with source ChatBoostSourcePremium
#1472
aiogram version
3.x
Problem
Currently, user from chat boost always
None
inUserContextMiddleware
: https://github.com/aiogram/aiogram/blob/dev-3.x/aiogram/dispatcher/middlewares/user_context.py#L117-L118, butchat_boost
with sourceChatBoostSourcePremium
always has user that boosted the chat: https://github.com/aiogram/aiogram/blob/dev-3.x/aiogram/types/chat_boost_source_premium.py#L21.Possible solution
I think it makes sense to add a new condition in the middleware like in https://github.com/aiogram/aiogram/blob/dev-3.x/aiogram/dispatcher/middlewares/user_context.py#L81
Alternatives
No response
Code example
No response
Additional information
No response
The text was updated successfully, but these errors were encountered: