Hello everyone!
As I've promised, the following are the steps to run and deploy your Telegram bots to Heroku.
Enjoy!
PS. If you have any questions, either PM me on Telegram or just open an issue right here!
You might want to learn what a git
is 😌.
I believe, this tutorial can make things a lot easier for starters.
The first thing you should do is to create your own repository on GitHub:
- Login
- Press the
+
button at the top. - To make things easier, opt-in to include a README file when prompted.
- Follow the steps there.
- Clone the repository via
$ git clone <your url>
(without<>
).
After you've cloned the repo, move to the folder of your project in Terminal.
Do: $ cd <project folfer>
.
Then create or copy your code in there. We will create ours from scratch:
$ touch bot.py
$ vim bot.py
(you might wanna google about using vim 🤪)- Edit your code and save it.
- Add your changes to git:
$ git add bot.py
. (Make sure you've configured your git. If not, follow these steps.) - Create your commit message:
$ git commit -m 'Your Message Goes Here 😏'
. - Upload (push) your changes to GitHub:
$ git push
. Here git will ask for your credentials - enter them.