Skip to main content
Node.js
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();
{}

Authorizations

Authorization
string
header
required

Headers

x-phone
string
Example:

Path Parameters

message_id
string
required
Example:

Body

application/json
edited_body
string
required
Example:

Response

204 - application/json