Skip to main content

GET Telegram Delivery Record by UUID

This endpoint retrieves the full delivery record for a specific Telegram message by its unique identifier. Use this to check the current status of a message, retrieve the request_id needed for verification status checks, or confirm delivery at any point after sending.

Configure the API Endpoint

https://api.betatel.com/api/v1/connect-hub/telegram/{uuid}/tdr
  • Method: GET

Set Up the Headers

ParamValueDescription
Content-typeapplication/jsonSpecifies the payload format.
x-api-key{{x-api-key}}API key for authorization.
x-account-id{{x-account-id}}User identifier for added security and tracking.

URL Parameters

ParameterTypeRequiredDescription
uuidstringYesThe unique identifier of the Telegram message, returned when the OTP was sent.

Code Snippets

Example - cURL
curl --location 'https://api.betatel.com/api/v1/connect-hub/telegram/01JV5V54KPYK9GB29265EQRZ2P/tdr' \
--header 'Content-Type: application/json' \
--header 'x-api-key: YOUR_API_KEY' \
--header 'x-account-id: YOUR_ACCOUNT_ID'

Understanding the Response

{
"uuid": "01JV5V54KPYK9GB29265EQRZ2P",
"to": "+38761444555",
"code": "482910",
"status": "DELIVERED",
"request_id": "187259537046478",
"country": "Bosnia and Herzegovina",
"country_code": 387,
"network": "BH Telecom",
"timestamp": "2024-01-15T10:30:00.000Z"
}
FieldTypeDescription
uuidstringUnique identifier for the Telegram message.
tostringRecipient's phone number (E.164 format).
codestringVerification code that was sent.
statusstringCurrent delivery status of the message (see table below).
request_idstringTelegram Gateway request identifier. Use this with Check Verification Status.
countrystringDestination country name.
country_codeintegerDestination country dialing code.
networkstringRecipient's mobile network operator.
timestampstringISO 8601 timestamp of when the message was created.

Message Status Values

StatusDescription
PENDINGMessage accepted and queued.
SENTMessage dispatched to the Telegram Gateway.
DELIVEREDMessage delivered to the recipient's device.
READRecipient has opened the message.
REJECTEDCode was invalid or max verification attempts exceeded.
FAILEDMessage expired, revoked, or could not be delivered.

Error Handling

  • 401 - Unauthorized: Authentication failed
  • 404 - Not Found: No message found with the provided UUID
  • 500 - Internal Server Error: An unexpected error occurred on the server