mirror of
https://github.com/RoboSats/robosats.git
synced 2025-01-31 02:21:35 +00:00
Hot fix telegram watcher. No message in results
This commit is contained in:
parent
4d2cf584eb
commit
b70679a7b7
@ -31,7 +31,12 @@ class Command(BaseCommand):
|
||||
if len(list(response['result'])) == 0:
|
||||
continue
|
||||
for result in response['result']:
|
||||
text = result['message']['text']
|
||||
|
||||
try: # if there is no key message, skips this result.
|
||||
text = result['message']['text']
|
||||
except:
|
||||
continue
|
||||
|
||||
splitted_text = text.split(' ')
|
||||
if splitted_text[0] == '/start':
|
||||
token = splitted_text[-1]
|
||||
|
Loading…
Reference in New Issue
Block a user