GithubHelp home page GithubHelp logo

tg-pay-bot's Introduction

tg-pay-bot

A telegram USDT-TRC20 collection robot.

usage

# python >= 3.10
pip install -r requirements.txt

# edit ~/.tg_pay_bot/config.yml >> bot config >> template:
TG_BOT_TOKEN: YOUR_TG_BOT_TOKEN
USDT_API_TOKEN: YOUR_USDT_API_TOKEN
USDT_API_URL: xxx/api/v1/order/create-transaction
NOTIFY_URL: xxx/server/notify
REDIRECT_URL: xxx/server/redirect
WALLET_TOKEN: YOUR_USDT_WALLET_TOKEN
WALLET_PHOTO: YOUR_USDT_WALLET_IMAGE
EXPIRE_TIME_SECOND: 600
ADMIN_TG_ACCOUNT: TG_ADMIN_TG_ACCOUNT
ADMIN_TG_ID: TG_ADMIN_TG_ID
# optional:
REDIS_HOST: localhost
REDIS_PORT: 6379
REDIS_PASSWORD: YOUR_REDIS_PASSWORD

# edit ~/.tg_pay_bot/items.json >> stuffs to sell >> template:
{
    "items": [
        {
            "name": "xx vip",
            "desc": "xxx",
            "price": "35",
            "action": "set_vip"
        },
    ]
}

# edit your action in server.py:
def set_vip(user_id):
    # ...
    BOT.send_message(chat_id=user_id, text="success")

# run
python3 bot.py
python3 server.py

tg-pay-bot's People

Contributors

akynazh avatar dependabot[bot] avatar

Watchers

Kostas Georgiou avatar  avatar

Forkers

garyvalue

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.