Skip to content

cryptodev523/blockchain-scan-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Blockchain Scanning Telegram Bot

Description

This is a Express server that runs Telegram bot to interact with users and fetches token information from the EVM blockchain.

Installation

  1. Clone the repository:
git clone git@github.com:cryptodev523/blockchain-scan-bot.git
  1. Install the dependencies:
yarn
  1. Create a .env file in the root directory and add your environment variables:

You can refer the .env.example file and replace with your variables.

  1. Run the server (Local)
yarn dev

Endpoints

  • GET /: Returns a simple message indicating the server is running.
  • POST /bs_webhook: Receives a webhook from a Telegram bot and responds with token information.

Connect webhook with the Telegram bot.

  • Contact the BotFather Telegram Bot and create a new bot.
  • Set Webhook url to the Telegram bot with the token.
https://api.telegram.org/${BOT_TOKEN}/setWebhook?url=${SERVER_URL}/bs_webhook

Interact with the bot.

  • Type the /bs ${ERC20_TOKEN_ADDRESS} in the bot. Screenshot at May 27 15-53-09

  • Bot will reply in 20 seconds. Screenshot at May 27 15-53-24 Screenshot at May 27 15-53-33

Releases

No releases published

Packages

No packages published