From 35e14cc9c23a071446851cb5b2c197b874175eff Mon Sep 17 00:00:00 2001 From: JungDev Date: Thu, 25 May 2017 18:02:44 +0200 Subject: [PATCH] Update runtests.py --- runtests.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/runtests.py b/runtests.py index d101153..7a9f898 100644 --- a/runtests.py +++ b/runtests.py @@ -21,6 +21,20 @@ ], SITE_ID=1, MIDDLEWARE_CLASSES=(), + DJANGO_TELEGRAMBOT = { + 'MODE' : 'WEBHOOK', #(Optional [str]) # The default value is WEBHOOK, + # otherwise you may use 'POLLING' + # NB: if use polling you must provide to run + # a management command that starts a worker + 'WEBHOOK_SITE' : 'https://mywebsite.com', + 'WEBHOOK_PREFIX' : '/prefix', # (Optional[str]) # If this value is specified, + # a prefix is added to webhook url + 'BOTS' : [ + { + 'TOKEN': '123456:ABC-DEF1234ghIkl-zyx57W2v1u123ew11', #Your bot token. + }, + ], + }, ) try: