App not working!

I followed all the steps and even the outputs matched !
But then too, the bot is not working.
What to do ?

Hey Manan!
Request you to share the stage after which the bot stopped working. Have you already deployed to Heroku after which you are facing the issue? Share the code too if possible.

After deploying the app, it’s still not working.
It is working fine, when I set the callback url to that created by ngrok.
But, while using the url provided by heroku, it doesn’t work at all.

Here’s the link: https://github.com/JamesBondOOO7/TELEGRAM-BOT

Note : I have deleted the client.json file as well as the API key.
And the theory.txt is just a reference for this project ( NOTES ).

Hey @mananaroramail

Can you try two things for me?
First:
Remove these lines of code

if __name__ == '__main__':
    app.run(port=8443)

and if this doesn’t work, try replacing those two with these:

if __name__ == "__main__":
    app.run(host='0.0.0.0')

Try deploying with these changes and let me know if this works.

Ok !!, I got the error.
Thanks !
It’s working perfectly.

1 Like

Glad I could be of some help. You can now mark the doubt as resolved in the “My Doubts” section.

Happy Learning!

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.