Sign Up

Log In

Telegram

FREE
By dimashirokov
Updated a year ago
Social
5.8/10
Popularity Score
75ms
Latency
-
Success Rate

Telegram API Documentation

Integrate secure messaging into your app.

View API Details

Supercharge your App

Discover and connect to thousands of APIs in the world's largest API Hub

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.

Sign up to test this endpoint
Log in
Header Parameters
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
Request Snippet
unirest.post("https://TelegramdimashirokovV1.p.rapidapi.com/editMessageCaption")
.header("X-RapidAPI-Key", "undefined")
.header("Content-Type", "application/x-www-form-urlencoded")
.send("replyMarkup=undefined")
.send("inlineMessageId=undefined")
.send("chatId=undefined")
.send("messageId=undefined")
.send("caption=undefined")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
Sample Response

loading...

Log inSign up

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-Key", "undefined")
.header("Content-Type", "application/x-www-form-urlencoded")
.send("replyMarkup=undefined")
.send("inlineMessageId=undefined")
.send("chatId=undefined")
.send("messageId=undefined")
.send("caption=undefined")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication
Sign up for freeto test this endpoint
Join the world’s largest API marketplace with over half a million developers and thousands of APIs.
DiscoverAPIs
Testfrom the browser
Connectusing code snippets
Managefrom one dashboard