Skip to content

Commit

Permalink
misc movement update
Browse files Browse the repository at this point in the history
  • Loading branch information
griever-gf committed Dec 3, 2022
1 parent 5b3dc5d commit 85a7033
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion korni.py
Original file line number Diff line number Diff line change
Expand Up @@ -518,7 +518,7 @@ def main():

if 'TG_API_KEY' in os.environ: # if prod
updater.start_webhook(listen="0.0.0.0", port=PORT, url_path=os.getenv("TG_API_KEY"),
webhook_url='https://korni-russkogo.onrender.com/' + os.getenv("TG_API_KEY"))
webhook_url='https://' + os.getenv("APP_URL") + '/' + os.getenv("TG_API_KEY"))
else: # if dev
updater.start_polling()

Expand Down
3 changes: 2 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ pymorphy2==0.9.1
pymorphy2-dicts==2.4.393442.3710985
pymorphy2-dicts-ru==2.4.417127.4579844
python-telegram-bot==13.11
urllib3==1.26.9
urllib3==1.26.9
gunicorn==20.1.0

0 comments on commit 85a7033

Please sign in to comment.