Skip to main content

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)

Source distribution for TeleCryptoBot 1.3
File Size Uploaded
TeleCryptoBot-1.3.tar.gz 6.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for TeleCryptoBot 1.3
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

1.3 This release

2 release files

1.1.2

1 release file

1.1.1

1 release file

1.1

1 release file

1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page