https://github.com/thohemp/oniontip-telegram
https://github.com/thohemp/oniontip-telegram
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/thohemp/oniontip-telegram
- Owner: thohemp
- Created: 2021-03-09T20:28:18.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-05-05T16:38:49.000Z (over 4 years ago)
- Last Synced: 2025-04-02T05:46:32.046Z (7 months ago)
- Language: Python
- Size: 432 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## OnionTip - DeepOnion tipbot for Telegram
_This is a fork of [PandaTip-Telegram](https://github.com/DarthJahus/PandaTip-Telegram), a Pandacoin tipbot for Telegram, by [@DarthJahus](https://github.com/DarthJahus)._### Dependencies
* `apt-get install python-dev`
* `apt-get install python-pip`
* `pip install python-telegram-bot --upgrade`
* `pip install requests`
* `pip install emoji`In order to run the tip-bot, a Bitcoin Unlimited (or equivalent) client is needed (bitcoind).
### Configuration file
Create a `config.json` **JSON** file and set up the following parameters:
(sample)
{
"telegram-token": "sicret-token",
"telegram-botname": "OnionTip",
"rpc-uri": "http://127.0.0.1:8332",
"rpc-user": "user",
"rpc-psw": "user",
"admins": [-0, 0],
"spam_filter": [5, 60]
}* `telegram-token`: Your bot's unique and secret token.
> Create a new bot by talking with [@BotFather](https://t.me/BotFather) to get one.
* `rpc-uri`: Address and port for the daemon.
> We do not advice to expose the port to external network. Please, be cautious.
> See [next section](#deeponion-daemon-configuration) to allow access for network addresses.
* `rpc-user`, `rpc-psw`: Username and password for the daemon.
> You can set them in the `bitcoin.conf` file ([see next section](#bitcoin-daemon-configuration)).
* `admins`: An array of administrators' Telegram UserID (as integers).
> You can send `/user_id` to [@ContremaitreBot](https://t.me/ContremaitreBot) to know your UserID.
* `spam_filter`: An array of two integers. The first value is the number of actions a user can perform in a period of time, the 2nd value defines that period of time in seconds.
> `"spam_filter": [5, 60]` means that users cannot perform more than 5 actions per minute.### Deeponion daemon configuration
A `DeepOnion.conf` file is needed in data directory.
(sample)
server=1
daemon=1
rpcuser=user
rpcpassword=pass
pid=bitcoind.pid
rpcallowip=127.0.0.1
rpcconnect=127.0.0.1---