commit
0922b5a4a4
@ -20,6 +20,8 @@ class Daemon(base.Daemon, queues.TasksHandlerMixin):
|
||||
if bot['type'] == 'telegram':
|
||||
token = bot['secrets']['telegram_token']
|
||||
self.process_telegram(token, payload['body'])
|
||||
else:
|
||||
print('Unknown bot type:', bot['type'])
|
||||
|
||||
def process_telegram(self, token, payload):
|
||||
try:
|
||||
|
Loading…
Reference in New Issue
Block a user