This bot is a simple working implementation of the payments methods of Telegram's bot API, and allows users to send you money.
It uses Stripe as payment provider and requires minimal setup.
- install the requirements with
pip install -r requirements.txt - rename
config.example.initoconfig.ini, open it, and edit the following sections of the file:
[telegram]:token: bot token (get it from @botfather)owner_id: your Telegram user idowner_name: your name (will be included in some messages)
[stripe](please follow these instructions to get your Stripe tokens):live: your LIVE Stripe tokentest: your TEST Stripe token
[general](optional):currency: currency to use (full list here), change it if notEURsourcecode: sourcecode link
[sqlite](optional):filename: name of the sqlite database
[log](optional):filename: name of the log file
- start the bot from Telegram
Now the bot can be started: python3 main.py. To use Stripe's TEST token, run it with the -t flag: python3 main.py -t
All the strings used by the bot are placed under bot/strings.py, you can edit them from this file.
You can restart the bot directly from Telegram with /restart. Restarting it with /restart -t will force it to use Stripe's TEST token
Stripe will transfer received money in your bank account every few days, and charges a small commission