Heroku Deployment

Sir, I have done the following steps while deploying the telegram bot.

  1. I have made procfile and added web gunicorn app: app and saved without any extension.
  2. I wasn’t able to install gunicorn on Windows but have added the same on requirements.txt
  3. Made an account on Heroku and installed Hereoku CLI.
  4. Added files on Github and deployed the same on Heroku.
    But on running the heroku.com/.git link, I am getting the error (Method Not Allowed).

hey @Rajan ,
can you please share a screenshot of

  1. Your heroku project dashboard.
  2. your heroku logs. you can get them by writing command heroku logs --tail in your cmd

Thank You :slightly_smiling_face:.

Hi @prashant_ml,
Thanks for the reply, here are the screenshots of the same.

hey @Rajan ,
you need to check your code .
Your logs are showing ModuleNotForund Error , kindly check that imports that you have made are working correctly.
Else ,you can also upload your full directory on github and share its link.

Here is my github repo: https://github.com/rjn01/Wiki-Bot

just update your Procfile to
web: gunicorn app:app

and then re deploy your code and if still there is some error then share its screenshot.

Hi @prashant_ml,
It was deployed successfully and printing hello command, But my it is not working on telegram.
I have entered /start command on telegram its not giving any result.


did you added the correct token in your code ?

Yes, my token is correct.

check your command prompt , it should have shown some error.
SHare a screenshot of it.

I did get that, what should I run on command prompt?

check your heroku logs in cmd,
whenever you type anything to telegram ,it should show something in those logs.

Check that.

Hi @prashant_ml,
I got my mistake, I did a silly mistake in my code.
Thanks for replying and helping me :blush:

Okay. That’s Nice.

So i guess your doubt it now resolved , so i would request you to kindly mark this doubt as resolved and also provide your valuable feedback as it helps us to improve this platform and provide you with better learning experience.

Thank You and Happy Learning :slightly_smiling_face:.