Skip to content

Latest commit

 

History

7 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🎁 Gift Parser Bot

JavaScript Telegram TON

Telegram bot that parses TON gift data and sends notifications when new gifts become available.

📋 Features

  • 🔍 Auto-monitoring - Continuously checks for new TON gifts
  • 📢 Instant notifications - Get notified immediately when gifts appear
  • Fast parsing - Quick detection and processing
  • 🎯 Smart filtering - Avoids duplicate notifications
  • 📱 Telegram integration - Direct messages to your Telegram chat
  • 🔄 Continuous operation - Runs 24/7 in the background

🚀 Setup

1. Installation

Clone this repository and install the required Node.js packages using npm.

2. Get your Telegram Bot Token 🤖

  • Open Telegram and find @BotFather
  • Create a new bot with /newbot command
  • Choose a name and username for your bot
  • Copy the provided token

3. Get your user_auth token 🔑

To get your user_auth token:

  • Open @Tonnel_Network_bot in Telegram
  • Perform any action in the bot (like checking gifts)
  • Open Developer Tools (F12) in your browser on web.telegram.org
  • Go to Network tab and look for "pageGifts" request
  • Click on the pageGifts request → go to Payload
  • Find the user_auth parameter - copy this value

4. Configure the bot ⚙️

Edit the config.js file and update these values:

  • bot_token - Your bot token from BotFather
  • user_auth - Your user_auth token from the browser
  • chat_id - Your personal chat ID (get it by messaging your bot first)
  • check_interval - How often to check for new gifts (in seconds)

🛠️ Requirements

  • Node.js 14+
  • npm or yarn
  • Active internet connection
  • Telegram account
  • Valid bot token and user_auth

📝 How it works

The bot uses your user_auth token to access Telegram's internal API and monitors TON gift channels. When new gifts are detected, it immediately sends a notification message to your specified Telegram chat with all the gift details. The bot runs continuously and checks for updates based on your configured interval.

📄 License

MIT License


Star this repo if it helped you!

About

Telegram bot that parses TON gift data and sends notifications

Resources

Stars

4 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages