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