mirror of
https://github.com/koloideal/Argenta.git
synced 2026-06-10 10:05:28 +03:00
continue create docs
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
# main.py
|
||||
from argenta import App, Orchestrator
|
||||
from routers import router
|
||||
|
||||
app: App = App()
|
||||
orchestrator: Orchestrator = Orchestrator()
|
||||
|
||||
def main() -> None:
|
||||
app.include_router(router)
|
||||
orchestrator.start_polling(app)
|
||||
|
||||
if __name__ == '__main__':
|
||||
main()
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
# routers.py
|
||||
from argenta import Router, Response
|
||||
|
||||
router = Router()
|
||||
|
||||
@router.command("hello")
|
||||
def handler(response: Response):
|
||||
print("Hello, world!")
|
||||
|
||||
Reference in New Issue
Block a user