Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(filters):
ChatAdminRequired
error (#282)
Fixes #281 Add handling for `ChatAdminRequired` exception in `UserIsAdmin` filter. * Import `ChatAdminRequired` from `hydrogram.errors`. * Modify `UserIsAdmin.__call__` method to catch `ChatAdminRequired` exception. * Add warning message in `UserIsAdmin.__call__` method when `ChatAdminRequired` exception is caught, informing the user that the bot needs to be an administrator to perform the action.
- Loading branch information