From a5eb909949d7feb8dea501698bfbf139d321a1e9 Mon Sep 17 00:00:00 2001 From: Evgeny Zinoviev Date: Tue, 20 Apr 2021 00:55:58 +0300 Subject: fix --- telegram_notify.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/telegram_notify.py b/telegram_notify.py index 427659c..bba2964 100644 --- a/telegram_notify.py +++ b/telegram_notify.py @@ -43,8 +43,8 @@ if __name__ == '__main__': # if found anything, send to telegram if results: - text = 'new mos-gorsud findings:\n'.join(results) + text = '\n'.join(results) r = requests.post('https://api.telegram.org/bot%s/sendMessage' % args.token, data={ 'chat_id': args.chat_id, - 'text': text + 'text': 'new mos-gorsud findings:\n' + text }) \ No newline at end of file -- cgit v1.2.3