We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Присылайте сюда фильтры, которые хотели бы добавить в квик
The text was updated successfully, but these errors were encountered:
IsBotAdminInChat IsSenderAdminInChat
Sorry, something went wrong.
IsBotAdminHere: Проверяет, является ли бот в этом чате админом
IsBotAdminHere
IsSenderAdminHere: Проверяет, является ли отправитель админом/создателем в беседе
IsSenderAdminHere
Имеет смысл перенести второй фильтр в AllowAccessFor(admins=True)
AllowAccessFor(admins=True)
Новые стили фильтров
import vkquick as vq pkg = vq.Package() @pkg.command( "foo", "bar", filter=vq.filters.only_for_admins() | vq.filters.only_for("durov") ) async def foo(arg: int): return f"Hello! Arg is {arg}"
import vkquick as vq app = vq.App() @app.command("foo", "bar") async def foo(arg: int): return f"Hello! Arg is {arg}"
No branches or pull requests
Присылайте сюда фильтры, которые хотели бы добавить в квик
The text was updated successfully, but these errors were encountered: