RelayAPI

Initiate Telegram bot connection

Generates a 6-character access code (valid 15 minutes).

POST
/v1/connect/telegram
AuthorizationBearer <token>

API key (rlay_live_* or rlay_test_*)

In: header

Response Body

application/json

application/json

curl -X POST "https://api.relayapi.dev/v1/connect/telegram"
{
  "code": "string",
  "expires_at": "2019-08-24T14:15:22Z",
  "expires_in": 0,
  "bot_username": "string",
  "instructions": [
    "string"
  ]
}
{
  "error": {
    "code": "string",
    "message": "string",
    "details": {
      "property1": null,
      "property2": null
    }
  }
}

Found something wrong? Help us improve this page.

Submit an Issue
Requires a GitHub account.View repo