Closed Grommash9 closed 8 months ago
in this case you mean add endpoint, create in db banned list and add new filter for banned id?
I think we can just add the field for user, because mongoDB allow us to have users without'banned' field on user creation, and we can add it later.
Also now i understood we also want to be able to unban them. So endpoint should use 'user_id' and new banned boolean as True or False and we should add these field or update
So we will have 3 states
Also as you mentioned we want to have a filer to just skip all updates from banned users.
It should use auth decorator like other api's and return error if we can find the user
We should have endpoint in tg bot to ban users, after ban user will still be able to send messages but we will not save them into database and will not notify anybody about it