Skip to content

botocrats/botocrat-app-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Telegram Bot

Botocrat

This bootstrap project has been created to quick start your botocrat development. utils, middlewares and commands are examples that you can remove if you don't need.

Features

Installation

npm i

Development

Obtain a bot token via BotFather

Create environment variable BOT_TOKEN before start.

export BOT_TOKEN=012122123:sDKJNkjsdnajkljndkASJKDNLk

Bot token is secret and you should never store in a codebase, also you shouldn't share and paste anywhere, especially in Telegram Bot Talk group :)

Launch development server

npm start

Go to your bot and send /start command.

Start development by editing bot/index.js and have fun!

Production

Edit config/app.js for production parameters.

node run/production

You can test webhooks via ngrok to be sure that works.

After uploading to cloud;

Launch production server

npm run prod

Terminate production server

npm run stop

About

Botocrat Bootstrap Project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published