Register a bot
POST/v1/bot:bot_id/:api_key/bot
This endpoint allows you to register a new bot. The owner of the bot that owns the API key used for this call will also be registered as the owner and bill-payer for the new bot.
Request
Responses
- 201
- 402
- 409
The bot has been successfully registered.
The bill-payer (owner of the bot) has one or more unpaid bills. New bots cannot be created until all existing bills are paid. Open [@TGmembership_Bot](https://t.me/tgmembership_bot?start=mybots) in Telegram and pay any outstanding bills.
The affiliate_id provided is already in use by another affiliate. Provide a unique affiliate_id.