Skip to content

Telegram userbot written on Nodejs. Mini framework for creating bots for popular miniapps like Hamster Kombat, Blum, TapSwap, Dogs, Major, OKX Racer and others.

License

Notifications You must be signed in to change notification settings

seven-gram/seven-gram

Repository files navigation

Seven Gram

📌 Prerequisites

  • Node.js v22 or greater
  • Npm v10 or greater

You can install these by this link

❓ How to run

  1. Install pm2 npm package globally

    npm i pm2 -g
  2. Install project dependencies

    npm ci
  3. Run build

    npm run build
  4. Start app

    npm run pm2:start

Notes 📝

  • To run farming mini apps on main session type .miniapps togglemainsession. To add additional sessions type .miniapps addsession

  • User commands (e.g., .help, .update, etc.) do not work in Saved Messages

  • Currently, there are no settings avaliable, so when you start the app, the bot will automatically play all supported minigames

  • Use the bot at your own risk!

Notes for DEVs 👨🏻‍💻

  • To start development, run the server that will watch for changes and build app by running npm run build:watch. After making changes, run the application using npm run start

  • Before running srarting the app, make sure you have the .env file. You can create it by running cp .env.example .env. command

  • If the environment variable NODE_ENV is set to local, user-commands will be available with the dev prefix (e.g., .devhelp, .devping, etc.)

📃 Getting API Keys

  1. Go to my.telegram.org and log in using your phone number.

  2. Select "API development tools" and fill out the form to register a new application.

  3. Note down the API_ID and API_HASH in .env file provided after registering your application.

📸 Screenshots

Log info to special channel on your main telegram accout

image

image

Commands avaliable from every chats (instead notes)

image