Get API token
To get a CryptoPay API token, you need to contact the bot @CryptoBot.
Using the testnet
To get a token in the test network, you should contact the bot @CryptoTestnetBot, and follow this instruction.
About bot
Check bot name
Before using the bot, make sure that the information about the bot matches the one below!
For main bot @CryptoBot:
from test bot @CryptoTestnetBot:
Start bot
Use the /start
command in the bot to exit to the main menu and press the button 🏝️ Crypto Pay
Creating of application
Click the Create application
button, CryptoBot will automatically create an application for you with a unique name.
Getting API token
Click the "API token" button to see your API token, it consists of an application identifier and a unique string in the format 000000:XXXXXXXXXXXXXXXXXXXXXXXXX
Using of token
After receiving the token, use it when creating an instance of the class [CryptoPay
][src.CryptoPayAPI.CryptoPay] like this CryptoPay('000000:XXXXXXXXXXXXXXXXXXXXXXXXX')
.
Warning
Don't forget to set the testnet=True
flag if you are using a test bot token, otherwise authorization will fail.
Created: December 29, 2022