Bot startup (русская версия)
- Install dependencies:
pip3 install -r requirements.txt
- Get a token from https://t.me/BotFather
- Create config.py (be careful not to upload tokens to github)
cp config.example.py config.py
- Specify require tokens and set specific settings:
TOKEN = "" # Token from @BotFather
ANALYTICS_URL = "https://6651b4300001d.tgrasp.co"
PROXY_URL = "https://api.deep-foundation.tech"
ADMIN_TOKEN = "" # Admin token for api.deep-foundation.tech
KEY_DEEPINFRA = ""
IS_DEV = True
PAYMENTS_TOKEN = ""
GO_API_KEY = ""
GUO_GUO_KEY = ""
WEBHOOK_ENABLED = False # or False to use polling
WEBHOOK_URL = "https://your.domain.com/webhook"
WEBHOOK_PATH = "/webhook"
WEBHOOK_HOST = "0.0.0.0"
WEBHOOK_PORT = 3000
- Start the bot
python3 __main__.py