|
|
@@ -123,6 +123,9 @@ def webhook(request):
|
|
123
|
123
|
except:
|
|
124
|
124
|
do_nothing = True
|
|
125
|
125
|
|
|
|
126
|
+ if not 'text' in data['message']:
|
|
|
127
|
+ return HttpResponse(201)
|
|
|
128
|
+
|
|
126
|
129
|
text = data['message']['text']
|
|
127
|
130
|
if text == '/notify_every_seum_or_not' or text == '/notify_every_seum_or_not@' + telegram_bot_name:
|
|
128
|
131
|
tchat = TelegramChat.objects.get(chat_id=chat['id'])
|