Answer the question
In order to leave comments, you need to log in
How to block a user in aiogram private chat?
How can I block a user in a private chat? I searched in the docks, there are solutions only for group chats. If such functionality is not provided, is it possible to terminate the session with the user, so that he would need to start the bot again? And then writing an additional query to the database for each function that checks the lock is a bad decision.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question