Module CryptoBot API(non-official)
Docs: https://help.crypt.bot/crypto-pay-api
Install
pip install TeleCryptoBot
Basic Methods
import TeleCryptoBot
crypto = TeleCryptoBot.TeleCryptoBot("0000:qwertyuiop")
info_profile = crypto.getMe()
balance = crypto.getBalance()
print(info_profile, balance, sep='\n')
Create and Delete Invoice
import TeleCryptoBot
crypto = TeleCryptoBot.TeleCryptoBot("0000:qwertyuiop")
#create invoice
invoice = crypto.createInvoice(asset="USDT", amount=1.0)
print(invoice.invoice_id)
# delete invoice
delete = crypto.deleteInvoice(invoice_id=invoice.invoice_id)
Create and Delete Check
import TeleCryptoBot
crypto = TeleCryptoBot.TeleCryptoBot("0000:qwertyuiop")
#create invoice
check = crypto.createCheck(asset="USDT", amount=1.0, pin_to_username="durov")
print(check.check_id)
# delete invoice
delete = crypto.deleteCheck(check_id.check.check_id)
Get Amount By Fiat
import TeleCryptoBot
crypto = TeleCryptoBot.TeleCryptoBot("0000:qwertyuiop")
# Get amount in crypto by fiat summ
amount = crypto.getAmountByFiat(summ=13, asset='TON', target='USD')
invoice = crypto.createInvoice(asset='TON', amount=amount)
print(invoice.bot_invoice_url)
Release files for TeleCryptoBot 1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| TeleCryptoBot-1.3.tar.gz | 6.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| TeleCryptoBot-1.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 14.2 kB
Release files / TeleCryptoBot-1.3.tar.gz
| Download URL | TeleCryptoBot-1.3.tar.gz |
|---|---|
| Size | 6.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cd6d39307bb7fa49976af58c81e10884224fac5e086f1881a319625725ac22d2
|
|
BLAKE2b-256 checksum How to use checksums |
1aa0b156953f5d738f22ab5309316790688ea6d13a3e5be247c0de0b33115282
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.10.2
|
Release files / TeleCryptoBot-1.3-py3-none-any.whl
| Download URL | TeleCryptoBot-1.3-py3-none-any.whl |
|---|---|
| Size | 8.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b14314bbb613b8bd0ea89bc46a59f838ce257e19a4fa80773e14011c99c028ca
|
|
BLAKE2b-256 checksum How to use checksums |
ab58d0032bd6f7ea6b5400597143bf1649a19ec987397994f1413a347c31f540
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.10.2
|