Before sending a message, you can optionally use the checkSendAbility method to verify if the user you’re targeting can receive messages on Telegram. This is helpful when you’ve generated a code but want to confirm it can be delivered before using the Routee API to send it.
If the method confirms that the user can receive messages, you will be charged in advance for one message, even if you don’t end up sending it. However, if the method returns an error (e.g., because the user cannot receive codes), you won’t be charged.
If the check is successful and you decide to send the message, make sure to use the request_id provided by the checkSendAbility method to avoid being charged again for the same message.
Your account will be charged
By calling this resource your account will be charged
RESPONSE PARAMETERS
KEY | DESCRIPTION |
---|---|
request_id | (string, optional) - Unique identifier |
ERROR CODES
STATUS | CODE | DESCRIPTION |
---|---|---|
403 | 400001009 | User is not authenticated. |
404 | 400005000 | User is not found. |