Panelr

Link a Chat

POST ?action=start_chat_link

Begin linking a Telegram or Discord chat to a login: the same one-time code the member area hands out. Show the code (and, for Telegram, the link or its QR); the customer sends it to the bot. It works once and lives 15 minutes; starting again retires the earlier code. Refresh the account (get_customer) afterwards — chats..linked turns true once the bot has taken it. Refused when the store does not offer that chat or it is already linked.

Request Parameters

FieldTypeRequiredDescription
customer_idintegerRequiredone of these twoThe customer
customer_emailstringRequiredone of these twoTheir address
platformstringRequiredtelegram or discord

Response Fields

FieldTypeDescription
codestringThe 8-character code
expires_inintegerSeconds the code lives (900)
telegram_urlstringA tap-to-link https://t.me/… link (Telegram only; empty until the bot has a username)
telegram_schemestringThe same link in tg:// form, for a QR code
discord_invite_urlstringThe server invite, when one is set (Discord only). In the server the customer types /link and pastes the code