Hi,
when I want to use the deploy button, it's not working.
after I check what happen on internet, I saw this:
https://stackoverflow.com/questions/71892543/heroku-and-github-items-could-not-be-retrieved-internal-server-error
Looks like Heroku disconnect with github for secure reason until can fix the secure problem.
but wehn I try to deploy with heroku-CLI (also modify the .env.sample and rename to .env) and use python3 bot.py to start the bot, it always show my this on log:
Traceback (most recent call last):
File "/app/bot.py", line 24, in
APP_ID = config("APP_ID", default=None, cast=int)
File "/app/.heroku/python/lib/python3.10/site-packages/decouple.py", line 243, in call
return self.config(*args, **kwargs)
File "/app/.heroku/python/lib/python3.10/site-packages/decouple.py", line 105, in call
return self.get(*args, **kwargs)
File "/app/.heroku/python/lib/python3.10/site-packages/decouple.py", line 99, in get
return cast(value)
TypeError: int() argument must be a string, a bytes-like object or a real number, not 'NoneType'
I don't know how to fix it. Please help me.
my .env.sample file content is:
APP_ID=16917856
API_HASH=86711f61999884res2ae76cff0cdb84c2
FROM_CHANNEL=-1544916992
TO_CHANNEL=-1783999972
SESSION=1BVtsOHwBuyLEg0Kt6mBCr0L-AV3j8ZzfdjHhQAyEyeqSlFNURvg0uwA29NFecKr_KLhkr-0SKHUIdEjOhaaTGnTyzapXWzzAMt8QXlG6xiRTiqtUyKFpMxMWYitkSkpfJKbd66bI5RZ3ysBXNyEGYRjL5DvFQEIPwNUfhDm5eO_pmj8WwmxfDRTIwHPlId23cJbDBILPkZkS8hoH1vyjmmNdY_HAsvziILu_C-OEXPgZ3qyp_LgaDF6-D517SZkYJjflzg5SEMlHgF3uafbx_n0wv1hwMcmDo7LQ3o-eADr1AOX6Mob_K6f-eKtxD626SOjRiez34-pbGd_cBBtc0EaMSdOU7m8=