mirror of
https://github.com/koloideal/Argenta.git
synced 2026-06-10 18:15:28 +03:00
docs
This commit is contained in:
@@ -14,6 +14,7 @@ class ConnectionProvider(Provider):
|
||||
yield conn
|
||||
conn.close()
|
||||
|
||||
|
||||
# 2. Создаем и настраиваем App
|
||||
app = App()
|
||||
# ... здесь можно добавить роутеры ...
|
||||
@@ -23,4 +24,4 @@ orchestrator = Orchestrator(custom_providers=[ConnectionProvider()])
|
||||
|
||||
# 4. Запускаем приложение
|
||||
if __name__ == "__main__":
|
||||
orchestrator.start_polling(app)
|
||||
orchestrator.start_polling(app)
|
||||
|
||||
Reference in New Issue
Block a user