You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
3 weeks ago | |
---|---|---|
.vscode | 3 weeks ago | |
.yarn | 3 weeks ago | |
locales | 3 weeks ago | |
src | 3 weeks ago | |
.env.sample | 3 weeks ago | |
.gitignore | 3 weeks ago | |
.yarnrc.yml | 3 weeks ago | |
README.md | 3 weeks ago | |
package.json | 3 weeks ago | |
tsconfig.json | 3 weeks ago | |
yarn.lock | 3 weeks ago |
README.md
Telegram bot starter template based on grammY
- Based on telegram-bot-starter by @Borodutch. Modified according to the author's preferences.
Installation and local launch
- Clone this repo:
git clone https://github.com/xzeldon/telegram-bot-starter
- Launch the mongo database locally
- Create
.env
with the environment variables listed below - Run
yarn
in the root folder - Run
yarn dev
And you should be good to go! Feel free to fork and submit pull requests. Thanks!
Environment variables
TG_TOKEN
— Telegram bot tokenMONGO_URI
— URL of the mongo databaseMONGO_DB_NAME
— Name of the mongo database
Also, 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!
Acknowledgements
- Repo: telegram-bot-starter by @Borodutch.