if __name__ == '__main__':
bot.polling(none_stop=True, interval=0)
while True:
schedule.run_pending()
time.sleep(1)
if __name__ == '__main__':
bot.polling(none_stop=True, interval=0)
schedule.run_pending()
time.sleep(1)
C:\Users\Irina\Documents\GitHub\5000-port-bot>heroku logs
2019-02-20T20:11:32.964798+00:00 app[api]: Release v1 created by user via1102@mail.ru
2019-02-20T20:11:33.315000+00:00 app[api]: Enable Logplex by user via1102@mail.ru
2019-02-20T20:11:33.315000+00:00 app[api]: Release v2 created by user via1102@mail.ru
2019-02-20T20:11:32.964798+00:00 app[api]: Initial release by user via1102@mail.ru
2019-02-20T20:11:44.875494+00:00 app[api]: Release v3 created by user via1102@mail.ru
2019-02-20T20:11:44.875494+00:00 app[api]: Set HEROKU config vars by user via1102@mail.ru
2019-02-20T20:16:03.000000+00:00 app[api]: Build started by user via1102@mail.ru
2019-02-20T20:16:34.323238+00:00 app[api]: Deploy c5aa48dc by user via1102@mail.ru
2019-02-20T20:16:34.323238+00:00 app[api]: Release v4 created by user via1102@mail.ru
2019-02-20T20:16:34.338409+00:00 app[api]: Scaled to web@1:Free by user via1102@mail.ru
2019-02-20T20:16:39.101060+00:00 heroku[web.1]: Starting process with command `python3 bot.py`
2019-02-20T20:16:43.100819+00:00 heroku[web.1]: State changed from starting to up
2019-02-20T20:16:42.462044+00:00 app[web.1]: * Serving Flask app "bot" (lazy loading)
2019-02-20T20:16:42.462069+00:00 app[web.1]: * Environment: production
2019-02-20T20:16:42.462145+00:00 app[web.1]: WARNING: Do not use the development server in a production environment.
2019-02-20T20:16:42.462214+00:00 app[web.1]: Use a production WSGI server instead.
2019-02-20T20:16:42.462263+00:00 app[web.1]: * Debug mode: off
2019-02-20T20:16:42.490703+00:00 app[web.1]: * Running on http://0.0.0.0:44845/ (Press CTRL+C to quit)
2019-02-20T20:16:43.000000+00:00 app[api]: Build succeeded
2019-02-20T20:19:07.170093+00:00 app[web.1]: 10.92.130.237 - - [20/Feb/2019 20:19:07] "GET / HTTP/1.1" 200 -
2019-02-20T20:19:07.209354+00:00 heroku[router]: at=info method=GET path="/" host=five-port-bot.herokuapp.com request_id=b361c3f6-2092-4b7a-ad65-c9d77b88b16e fwd="188.242.4.23" dyno=web.1 connect=1ms service=1555ms status=200 bytes=155 protocol=https
2019-02-20T20:19:08.224583+00:00 app[web.1]: 10.86.7.48 - - [20/Feb/2019 20:19:08] "GET /favicon.ico HTTP/1.1" 404 -
2019-02-20T20:19:08.224399+00:00 heroku[router]: at=info method=GET path="/favicon.ico" host=five-port-bot.herokuapp.com request_id=8e680e21-8a0b-4bbc-bff0-9ac0ece9ed90 fwd="188.242.4.23" dyno=web.1 connect=1ms service=12ms status=404 bytes=380 protocol=https
C:\Users\Irina\Documents\GitHub\5000-port-bot>
Worker and one-off dynos cannot receive inbound requests.
Worker
не может получать запросы и значит использоваться для бота.