Jan. 14, 2024, 11:58 a.m. | Humehr Sanatkar

DEV Community dev.to

We can use any programming languages for develop a telegram bot like PHP, C#, Python...

in this article we used JavaScript for develop telegram bot.


1- In first we need to install Nodejs and NPM (Link).

2- Next step, create an directory so open Terminal or CMD on your project directory, so run this command:



npm init --y


3- For develop, we need TelegrafJS library. So run this command:



npm i --save telegraf


4- create index.js file

5- …

article bot directory install javascript languages library next node npm php programming programming languages project python telegraf telegram terminal

Founding AI Engineer, Agents

@ Occam AI | New York

AI Engineer Intern, Agents

@ Occam AI | US

AI Research Scientist

@ Vara | Berlin, Germany and Remote

Data Architect

@ University of Texas at Austin | Austin, TX

Data ETL Engineer

@ University of Texas at Austin | Austin, TX

Lead GNSS Data Scientist

@ Lurra Systems | Melbourne