Skip to main content

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

Idempotency-Key
string
required
Pattern: ^[A-Za-z0-9_-]{8,128}$

Path Parameters

chatId
string
required
messageId
string
required

Body

application/json

edit requires text and an own sent message; delete also requires own sent message; forward requires a selected targetChatId and independent target messages:write. All require full exact same-chat message proof.

action
enum<string>
required
Available options:
edit,
delete,
forward,
pin,
unpin
text
string
Required string length: 1 - 4000
targetChatId
string
days
enum<integer>
default:7
Available options:
1,
7,
30

Response

Completed action result

requestId
string
required
state
enum<string>
required
Available options:
completed,
unknown
messageId
string
required
action
string
required
targetChatId
string
replayed
boolean
error
string