All Projects → Kylmakalle → Heroku Telegram Bot

Kylmakalle / Heroku Telegram Bot

Licence: mit
Starter pack to host your Python Telegram Bot on Heroku for free.

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Heroku Telegram Bot

Java Telegram Bot Tutorial
Java Telegram Bot Tutorial. Feel free to submit issue if you found a mistake.
Stars: ✭ 165 (-9.84%)
Mutual labels:  bot, guide, telegram
Telegram Clonebot
Simple Bot to clone Google Drive Files (or Folders) to your Team Drive[or Normal Drive]. P.S This is not a Mirror Bot. Enjoy ✌🏻
Stars: ✭ 114 (-37.7%)
Mutual labels:  bot, heroku, telegram
Anydlbot
An Open Source GPLv3 All-In-One Telegram Bot
Stars: ✭ 236 (+28.96%)
Mutual labels:  bot, heroku, telegram
Magento Chatbot
Magento Chatbot Integration with Telegram, Messenger, Whatsapp, WeChat, Skype and wit.ai.
Stars: ✭ 149 (-18.58%)
Mutual labels:  bot, telegram
Bdreborn
An administration bot based on ➣ https://valtman.name/telegram-cli :)
Stars: ✭ 144 (-21.31%)
Mutual labels:  bot, telegram
Trebekbot
An addictive Jeopardy! bot for Slack. Fun fact, after I added this to my work Slack I was told to limit it to a single channel because productivity ground to a halt. (Five years later, the #jeopardy channel is still going strong.)
Stars: ✭ 147 (-19.67%)
Mutual labels:  bot, heroku
Tradingview Webhook Bot
⚙️ Send TradingView alerts to Telegram, Discord, Slack, Twitter and/or Email.
Stars: ✭ 135 (-26.23%)
Mutual labels:  bot, telegram
Telegram link line
用Telegram來收發Line的訊息,use telegram to Send and receive messages(from Line)。 或者把它當作Line的訊息備份也是可啦 😛
Stars: ✭ 164 (-10.38%)
Mutual labels:  bot, telegram
Media Search Bot
Inline bot for channels and groups
Stars: ✭ 150 (-18.03%)
Mutual labels:  bot, telegram
Line Bot Tutorial
Line bot tutorial.
Stars: ✭ 181 (-1.09%)
Mutual labels:  bot, heroku
Bitprophet
Node crypto trading platform for Binance exchange.
Stars: ✭ 166 (-9.29%)
Mutual labels:  bot, telegram
Loco Answers
Open Source Android App for answers in TRIVIA GAMES
Stars: ✭ 180 (-1.64%)
Mutual labels:  bot, free
Vk To Telegram Transfer Bot
Бот, пересылающий сообщения из чатов ВК в Telegram и обратно
Stars: ✭ 143 (-21.86%)
Mutual labels:  bot, telegram
Expressbot
一个可以帮你订阅、查询快递物流、跟你闲聊Telegram机器人
Stars: ✭ 137 (-25.14%)
Mutual labels:  bot, telegram
Telebot
Write Telegram bots in Rust with Tokio and Futures
Stars: ✭ 179 (-2.19%)
Mutual labels:  bot, telegram
Canoe
Functional Telegram Bot API for Scala
Stars: ✭ 137 (-25.14%)
Mutual labels:  bot, telegram
Telegram Kraken Bot
Python bot to trade on Kraken via Telegram
Stars: ✭ 156 (-14.75%)
Mutual labels:  bot, telegram
Flottbot
A chatbot framework written in Go. All configurations are made in YAML files, or inside scripts written in your favorite language.
Stars: ✭ 175 (-4.37%)
Mutual labels:  bot, telegram
Telegram.bot
.NET Client for Telegram Bot API
Stars: ✭ 1,964 (+973.22%)
Mutual labels:  bot, telegram
Telegram Instapy Scheduling
A Telegram bot for scheduling InstaPy
Stars: ✭ 136 (-25.68%)
Mutual labels:  bot, telegram

Hosting telegram bot on Heroku for free.

Easy way to host your python telegram bot on Heroku

Deploying via Heroku Toolbelt (CLI)

Install Heroku Toolbelt, then:

Clone repository

git clone https://github.com/Kylmakalle/heroku-telegram-bot.git

Edit files

  1. Edit bot.py file with your code

    1. ATTENTION! Do not collapse/delete/comment some_token = os.environ[SOME_TOKEN] style stings (you can delete redis setup line if you do not need it), do not change them with your REAL tokens, all tokens will be setted up below in this guide!

    2. More About Config Vars

    3. Also, don't do like this, it's insecure, realy.

  2. Edit requirments.txt with your code's dependencies

  3. Specify your python runtime, avaliable versions listed here

Go to command line

cd heroku-telegram-bot
heroku login
heroku create --region eu appname # create app in eu region, common regions: eu, us
heroku addons:create heroku-redis:hobby-dev -a appname # (Optionaly) installing redis
heroku buildpacks:set heroku/python # set python buildpack
git push heroku master # deploy app to heroku
heroku config:set TELEGRAM_TOKEN=123456789:AAABBBCCCDDDEEEFFFGGGHHHIIIJJJKKKLL # set config vars, insert your own
heroku config:set SOME_API_TOKEN=qwertyuiop1234567890
                ...
heroku ps:scale bot=1 # start bot dyno
heroku logs --tail # If for some reason it’s not working, check the logs
heroku ps:stop bot #stop bot dyno

Deploying via Heroku Dashboard (GUI)

  1. Fork this repo to your account.

  2. Edit files

  3. Go to Dashboard, login, Press New and choose Create new app.

  4. Fill in an App Name and choose Runtime Region.

  5. Connect your GitHub repo at Deploy page.

  6. Setup Automatics deploys (Optionaly).

  7. Deploy a GitHub branch.

  8. Then go to a Settings page, click Reveal Config Vars and then add your own, for example: Config Vars

  9. Finally, go to the Resources page.

    1. Install Heroku Redis add-on (Optionaly)
    2. Press on a small pen button, move slider and then click Confirm, that will start bot dyno.
    3. Simply move slider back if you need to stop bot dyno, remember to click Confirm.
    4. If for some reason it’s not working, check the logs here

    Logs

More about

Thanks to Roman Zaynetdinov for awesome and easy CLI guide.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].