Skip to content

CLI tool to generate Telegram bots from scaffolding templates, n-joy. ✨

License

Notifications You must be signed in to change notification settings

HouseOfTies/telegram-bot-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Telegram-Bot-Generator

The most lightweight, fastest and powerful ToolKit & Scaffolding NPM CLI tool to create Telegram bot

GitHub GitHub repo size npm npm npm GitHub last commit Open Source Love svg2

The best scaffolding and boilerplate NPM CLI tool to create bots

Available templates:
  • NodeJS
  • TypeScript (Most Recommended)

Why TBG?

I recently became fascinated by telegram bots, being this. A new but powerful tool in which many programmers have been approached under the same fascination. Many bots have been seen throughout the messaging system itself, some more useful than others. Among them I can mention my beloved XhibalbaBot, a project I started several years ago and which I continue to maintain to this day with increasingly clean and scalable structures.

The main reason why I decided to take the challenge of making a CLI tool that was able to generate bots from a relatively clean code, was the fact that every time I had to make a bot on my own, I had to do it from scratch, that is, configure the whole environment and program all the files.

BUT GOOD NEWS! This is over, because with something as simple as a token, you can have a fully functional bot.

Note: We will be adding new languages, structures and improvements as this project is accepted.


How to install?

Step 1:

You only need one thing to create a project, a bot token from @Botfather or the direct link with https://www.t.me/botfather and follow the instructions to register your bot and get the token.

Step 2:

For Windows users:
  • You have to install the node client to get NPM, you can download it here https://nodejs.org/en/download/
  • Open a cmd or powershell with administrator permissions and enter the follow command
npm install -g telegram-bot-generator
For Linux users:
sudo npm install -g telegram-bot-generator

Run the command:

telegram-bot-generator

Enter your <token> from @Botfather Select the flavor of your bot and that is all.

How to run your created Bot?

Just install the respective packages and run it as well as you run any project. E.g:

npm i
npm run

For more information about bot methods, give a look to: https://core.telegram.org/bots/api#available-methods

Do you want to know more about me or keep in touch? Give a look to my portfolio at https://seventty.netlify.app

Do you want colaborate? Go ahead, open a pull request.

Do you want message me? There is my telegram.

private

houseofties

ForTheBadge built-with-love

2022©Rainiery Valerio Gonzalez