https://github.com/deep-assistant/telegram-bot
https://github.com/deep-assistant/telegram-bot
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/deep-assistant/telegram-bot
- Owner: deep-assistant
- License: unlicense
- Created: 2024-05-18T17:16:40.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2025-05-28T20:51:09.000Z (about 1 year ago)
- Last Synced: 2025-06-08T14:06:45.074Z (about 1 year ago)
- Language: Python
- Size: 519 KB
- Stars: 6
- Watchers: 1
- Forks: 4
- Open Issues: 38
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
# Bot startup ([русская версия](readme.ru.md))
0. Install dependencies:
```sh
pip3 install -r requirements.txt
```
1. Get a token from https://t.me/BotFather
2. Create config.py (be careful not to upload tokens to github)
```
cp config.example.py config.py
```
3. Specify require tokens and set specific settings:
```python
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
```
4. Start the bot
```sh
python3 __main__.py
```