Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yogasakti/logger-telebot
Personal telegram bot
https://github.com/yogasakti/logger-telebot
Last synced: about 1 month ago
JSON representation
Personal telegram bot
- Host: GitHub
- URL: https://github.com/yogasakti/logger-telebot
- Owner: YogaSakti
- Created: 2019-06-18T03:55:02.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-07T19:14:33.000Z (almost 2 years ago)
- Last Synced: 2023-03-04T16:02:38.453Z (over 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 172 KB
- Stars: 4
- Watchers: 2
- Forks: 4
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Telegram Bot coded in NodeJS hosted at Heroku
Sample files to run a Telegram Bot with Heroku without [dyno sleeping](https://blog.heroku.com/app_sleeping_on_heroku).## Requirements
* [NodeJS (and npm)](https://nodejs.org/en/)
* [Heroku CLI](https://devcenter.heroku.com/articles/heroku-cli)
* [node-telegram-bot-api](https://github.com/yagop/node-telegram-bot-api)
* [Bot token](https://web.telegram.org/#/im?p=@BotFather)## References
* [Heroku NodeJS Documentation](https://devcenter.heroku.com/articles/getting-started-with-nodejs#introduction)
* [node-telegram-bot-api Documentation](https://github.com/yagop/node-telegram-bot-api/blob/master/doc/usage.md)---
Make sure to run `npm install` before commiting your bot to Heroku.
---
## Prevent Dyno sleeping
By default, Heroku apps sleep after 1 hour of inactivity. This can be prevented by running the app as a worker dyno instead of a web dyno. This is already set on the Procfile, but make sure this is also true on your dashboard.
1. Go to your [Heroku dashboard]
2. Resources tab
![Resources Tab](https://i.imgur.com/vFMtJnN.jpg)
3. Check worker, uncheck web (if it's checked)
![Check worker, uncheck web](https://i.imgur.com/LxpbJlN.jpg)