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
todo!
class Filter(NamedTuple): pass or, simpler: Filter = dataclass(frozen=True)(Filter)
States are just a type of filters.
no examples.
# mod1.py baker: QueryBaker = ... handler(...): mod2.baker.get_checked(...) # mod2.py baker: QueryBaker = ... handler(...): mod1.baker.get_checked(...)
Introduce gettext and I18N data to users.
[long-term] make garnet a frontend to any telethon-like library and not just telethon.
Filter pipelines and stacks:
from garnet.filters import Pipeline, Stack pp = Pipeline(user_exists, in_entry_state, is_allowed_cmd) @router.message(pp.pop(1)) # will compose Stack().include (user_exists, is_allowed_cmd) async def _(_): ... stack = Stack(user_exists, in_entry_state, is_allowed_cmd) @router.message(stack.include(0, 1)) # will drop is_allowed_cmd async def _(_): ...
The text was updated successfully, but these errors were encountered:
uwinx
No branches or pull requests
todo!
States are just a type of filters.
no examples.
Introduce gettext and I18N data to users.
[long-term] make garnet a frontend to any telethon-like library and not just telethon.
Filter pipelines and stacks:
The text was updated successfully, but these errors were encountered: