Register an affiliate
POST/v1/bot:bot_id/:api_key/affiliate
Register new affiliates into the affiliate program within the bot.
Request
Responses
- 200
- 400
- 401
- 404
- 409
The affiliate has been registered successfully.
The affiliate_id provided is invalid. It must start with a letter, be at least 3 characters long, no more than 12, consisting of letters and numbers only, and be unique (not used by anyone else).
The affiliate add-on hasn't been installed in this bot. Install it using the /affiliate command in your bot on Telegram.
The member_id provided does not belong to someone who has previously interacted with the bot or they have blocked the bot.
The affiliate_id provided is already in use by another affiliate. Provide a unique affiliate_id.