RapidAPI logo

Telegram

FREE
By dimashirokov
Updated a month ago
Social
7.5/10
Popularity Score
297ms
Latency
-
Success Rate

Telegram API Documentation

Integrate secure messaging into your app.

View API Details
POSTeditMessageCaption
POSTeditMessageText
POSTforwardMessage
POSTgetChat
POSTgetChatAdministrators
POSTgetChatMember
POSTgetChatMembersCount
POSTgetFile
POSTgetGameHighScores
POSTgetMe
POSTgetUpdates
POSTgetUserProfilePhotos
POSTgetWebhookInfo
POSTkickChatMember
POSTleaveChat
POSTsendAudio
POSTsendChatAction
POSTsendContact
POSTsendDocument
POSTsendGame
POSTsendLocation
POSTsendMessage
POSTsendPhoto
POSTsendSticker
POSTsendVideo
POSTsendVoice
POSTsetWebHook
POSTunbanChatMember
POSTwebhookCommand
POSTeditMessageCaption

Use this method to edit captions of messages sent by the bot or via the bot (for inline bots). On success, if edited message is sent by the bot, the edited Message is returned, otherwise True is returned.

Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Required Parameters
tokenCREDENTIALS
REQUIREDRequired: Authentication token.
Optional Parameters
replyMarkupJSON
OPTIONALA JSON-serialized object for an inline keyboard.
inlineMessageIdSTRING
OPTIONALRequired if chat_id and message_id are not specified. Identifier of the inline message
chatIdSTRING
OPTIONALUnique identifier for the target group or username of the target supergroup (in the format @supergroupusername)
messageIdNUMBER
OPTIONALRequired if inline_message_id is not specified. Unique identifier of the sent message
captionSTRING
OPTIONALNew caption of the message
Code Snippet
unirest.post("https://TelegramdimashirokovV1.p.rapidapi.com/editMessageCaption")
.header("X-RapidAPI-Host", "TelegramdimashirokovV1.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.header("Content-Type", "application/x-www-form-urlencoded")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
Sample Response
General
Request URL: https://TelegramdimashirokovV1.p.rapidapi.com/editMessageCaption
Request Method: POST
Response Headers
Response Body

Install SDK for NodeJS

Installing

To utilize unirest for node.js install the the npm module:

$ npm install unirest

After installing the npm package you can now start simplifying requests like so:

var unirest = require('unirest');

Creating Request

unirest.post("https://TelegramdimashirokovV1.p.rapidapi.com/editMessageCaption")
.header("X-RapidAPI-Host", "TelegramdimashirokovV1.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.header("Content-Type", "application/x-www-form-urlencoded")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication