@@ -0,0 +1 @@
|
||||
# Telegram Service (stub)
|
||||
@@ -0,0 +1,24 @@
|
||||
import devplacepy_services.base.bootstrap
|
||||
|
||||
from devplacepy.services.telegram.outbox_service import TelegramOutboxService
|
||||
from devplacepy.services.telegram.service import TelegramService
|
||||
from devplacepy_services.base.service import BaseMicroservice, build_standard_app
|
||||
|
||||
|
||||
class TelegramMicroservice(BaseMicroservice):
|
||||
name = "telegram"
|
||||
title = "Telegram"
|
||||
default_port = 10635
|
||||
workers = 1
|
||||
stateful = True
|
||||
depends_on = ["database", "pubsub"]
|
||||
managed_services = [TelegramService(), TelegramOutboxService()]
|
||||
use_background = True
|
||||
run_supervisor = True
|
||||
|
||||
def build_app(self):
|
||||
return build_standard_app(self)
|
||||
|
||||
|
||||
_service = TelegramMicroservice()
|
||||
app = _service.build_app()
|
||||
Reference in New Issue
Block a user