Authorizations
Headers
Example:
Path Parameters
Example:
Body
application/json
Example:
Response
204 - application/json
import { PeriskopeApi } from '@periskope/periskope-client';
const client = new PeriskopeApi({
authToken: 'YOUR_API_KEY',
phone: 'YOUR_PHONE_NUMBER', // e.g., '919876543210'
});
async function editMessage() {
const response = await client.message.edit({
message_id: '[email protected]_3EB0F754E67BDF3178E76C680224FF7114E2CB95',
edited_body: 'Hello, Edited World'
});
console.log(response);
}
editMessage();{}This endpoint edits a message based on the message_id or queue_id
import { PeriskopeApi } from '@periskope/periskope-client';
const client = new PeriskopeApi({
authToken: 'YOUR_API_KEY',
phone: 'YOUR_PHONE_NUMBER', // e.g., '919876543210'
});
async function editMessage() {
const response = await client.message.edit({
message_id: '[email protected]_3EB0F754E67BDF3178E76C680224FF7114E2CB95',
edited_body: 'Hello, Edited World'
});
console.log(response);
}
editMessage();{}Was this page helpful?