From d8fcfbb76b0013250171dbadb8ed307461912e44 Mon Sep 17 00:00:00 2001 From: Ian Andwati Date: Thu, 16 Feb 2023 16:53:36 +0300 Subject: [PATCH] feat: deploying to render --- requirements.txt | 64 +++++++++++++++++++++++++----------------------- src/bot.py | 2 +- 2 files changed, 34 insertions(+), 32 deletions(-) diff --git a/requirements.txt b/requirements.txt index a630759..162f348 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,31 +1,33 @@ - - Warning: The lock flag -r/--requirements will be deprecated in a future version - of pipenv in favor of the new requirements command. For more info see - https://pipenv.pypa.io/en/latest/advanced/#generating-a-requirements-txt - NOTE: the requirements command parses Pipfile.lock directly without performing any - locking operations. Updating packages should be done by running pipenv lock - -# -# These requirements were autogenerated by pipenv -# To regenerate from the project's Pipfile, run: -# -# pipenv lock --requirements -# - --i https://pypi.org/simple -certifi==2021.10.8 -charset-normalizer==2.0.12; python_version >= '3' -click==8.1.3; python_version >= '3.7' -colorama==0.4.4; platform_system == 'Windows' -flask==2.1.2 -gunicorn==20.1.0 -idna==3.3; python_version >= '3' -itsdangerous==2.1.2; python_version >= '3.7' -jinja2==3.1.2; python_version >= '3.7' -markupsafe==2.1.1; python_version >= '3.7' -pytelegrambotapi==4.5.1 -python-dotenv==0.20.0 -requests==2.27.1; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4, 3.5' -setuptools==62.2.0; python_version >= '3.7' -urllib3==1.26.9; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4' and python_version < '4' -werkzeug==2.1.2; python_version >= '3.7' + +certifi==2021.10.8 + +charset-normalizer==2.0.12; python_version >= '3' + +click==8.1.3; python_version >= '3.7' + +colorama==0.4.4; platform_system == 'Windows' + +flask==2.1.2 + +gunicorn==20.1.0 + +idna==3.3; python_version >= '3' + +itsdangerous==2.1.2; python_version >= '3.7' + +jinja2==3.1.2; python_version >= '3.7' + +markupsafe==2.1.1; python_version >= '3.7' + +pytelegrambotapi==4.5.1 + +python-dotenv==0.20.0 + +requests==2.27.1; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4, 3.5' + +setuptools==62.2.0; python_version >= '3.7' + +urllib3==1.26.9; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4' and python_version < '4' + +werkzeug==2.1.2; python_version >= '3.7' + diff --git a/src/bot.py b/src/bot.py index 1a80413..1a093f1 100644 --- a/src/bot.py +++ b/src/bot.py @@ -15,7 +15,7 @@ bot.remove_webhook() time.sleep(3) # configure the webhook for the bot bot.set_webhook( - "https://{}.herokuapp.com/{}".format( + "https://{}.onrender.com/{}".format( os.getenv("PROJECT_NAME"), os.getenv("TELEGRAM_TOKEN") ) )