We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 156ced1 commit aeaac33Copy full SHA for aeaac33
telegram_bot/blueprint.py
@@ -7,11 +7,11 @@
7
8
telegram_blueprint = Blueprint('telegram_blueprint', __name__)
9
10
-
11
-@telegram_blueprint.before_app_first_request
12
-def init_telegram_blueprint():
13
- bot = set_webhook()
14
- create_dispatcher(bot)
+if not current_app.config['DEBUG']:
+ @telegram_blueprint.before_app_first_request
+ def init_telegram_blueprint():
+ bot = set_webhook()
+ create_dispatcher(bot)
15
16
17
@telegram_blueprint.route(
0 commit comments