mirror of
https://github.com/koloideal/Argenta.git
synced 2026-06-10 18:15:28 +03:00
17 lines
398 B
Python
17 lines
398 B
Python
from argenta import App, Orchestrator
|
|
from .handlers import router
|
|
|
|
|
|
app = App(initial_message="metrics")
|
|
orchestrator = Orchestrator()
|
|
|
|
|
|
def main() -> None:
|
|
app.include_router(router)
|
|
app.set_description_message_pattern(lambda command, description: f'[blue]{command}[/blue] [red]--->[/red] [i]{description}[/i]')
|
|
orchestrator.start_polling(app)
|
|
|
|
|
|
if __name__ == "__main__":
|
|
main()
|