Check Telegram Pairing Status
tg_pair_statusCheck a Telegram pairing started with tg_pair_account. While state is "qr" a new image is returned each time — show the latest to the user. A Telegram pairing may report "password_needed": the user enters their cloud password on the console's pairing page, never here. When state becomes "paired" the account is ready and appears in wa_list_accounts.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"pair_id": "<pair_id>"
},
"name": "tg_pair_status"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pair_id | Yes | the pair_id returned by tg_pair_account |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| state | Yes | starting, qr, code, password_needed (a Telegram account with two-step verification: the user must enter their cloud password on the console's pairing page — never ask for it here), paired or failed | |
| network | No | the messaging network the pairing links on: whatsapp or telegram | |
| pair_id | No | pass this to wa_pair_status to follow the pairing | |
| refusal | No | present only when pairing could not be started | |
| pair_code | No | the 8-character code the user types on their phone (phone-number pairing only) | |
| expires_at | No | when pair_code stops working, RFC 3339 (phone-number pairing only) | |
| needs_plan | No | true when the linked number has no plan yet and will not run until the user buys one in the console | |
| instructions | No | what to tell the user to do | |
| qr_png_base64 | No | a PNG image of the QR code, base64 encoded — display this to the user |