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)

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

TeleCryptoBot-1.1.2.tar.gz (6.0 kB view details)

Uploaded Source

File details

Details for the file TeleCryptoBot-1.1.2.tar.gz.

File metadata

  • Download URL: TeleCryptoBot-1.1.2.tar.gz
  • Upload date:
  • Size: 6.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.10.2

File hashes

Hashes for TeleCryptoBot-1.1.2.tar.gz
Algorithm Hash digest
SHA256 5d0a60b6a6b8341102f27ffc45ce284a6430e1f82f8858af8bb59449ef35d680
MD5 43e174475914c0a3088917124e5f1d9d
BLAKE2b-256 12c36cfded7c72bbe3d54f02e16988440423cbddacde97cd9ea6d2100c1604fa

See more details on using hashes here.

Release history Release notifications | RSS feed

1.3

2 files

This release

1.1.2 This release

1 file

1.1.1

1 file

1.1

1 file

1.0

2 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