Write your own Telegram Wallet bot

Himanshu Singh
10 min readFeb 11, 2024

Hey everyone 👋, I am Himanshu. I have been working as a frontend engineer at a Crypto Wallet extension in the Cosmos ecosystem for the last 1.7 years. Outside my work, I have done many freelance projects through a mutual friend. In freelance, mostly I have worked on web3 projects only, related to making a TG buy bot tracker, a coin flip web app game, and a TG wallet bot in the Ethereum ecosystem.

I have always found it difficult to find some good resources while working on those projects, most of the time I refer to Chat GPT, some random blogs, and YouTube videos. That’s why I thought I should write a blog on an actual working TG wallet bot, and that’s why this blog.

Let’s start.

Initialize the project

I will use a NodeJS environment to make this project. So, first, create a new folder tg-wallet-bot, and run npm init -y in that. After running this command, you must have got a package.json file in your tg-wallet-bot folder. Now, let’s add a few dependencies that will help us to quickly test our bot. Create dependencies, a new field in the package.json file object, and add the following dependencies with the mentioned version.

"express": "4.18.2",
"telegraf": "4.12.2",
"dotenv": "16.3.1"

--

--

Himanshu Singh
Himanshu Singh

Written by Himanshu Singh

I write blogs around React JS, JavaScript, Web Dev, and Programming. Follow to read blogs around them.

Responses (1)