https://github.com/idkjs/telegraf-mongodb
https://github.com/idkjs/telegraf-mongodb
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/idkjs/telegraf-mongodb
- Owner: idkjs
- License: mit
- Created: 2020-01-09T18:30:13.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-01-09T20:14:47.000Z (over 5 years ago)
- Last Synced: 2025-02-04T16:51:13.174Z (5 months ago)
- Language: TypeScript
- Size: 33.2 KB
- Stars: 2
- Watchers: 0
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# Telegram bot template based on telegraf.js.org
Please, enjoy this starter template for Telegram bots based on telegraf.js.org. It includes most common middlewares used by me, MongoDB integration, language picker and internationalization and shows basic encapsulation techniques used by me.
# Installation and local launch
1. Clone this repo: `git clone https://github.com/backmeupplz/telegraf-template`
2. Launch the [mongo database](https://www.mongodb.com/) locally
3. Create `.env` with the environment variables listed below
4. Run `yarn install` in the root folder
5. Run `yarn develop`And you should be good to go! Feel free to fork and submit pull requests. Thanks!
# Environment variables
- `TOKEN` — Telegram bot token
- `MONGO`— URL of the mongo databaseAlso, please, consider looking at `.env.sample`.
# License
MIT — use for any purpose. Would be great if you could leave a note about the original developers. Thanks!