v1

latestOpenAPI 3.0.02026-07-14181255304.7 KB
Chats

⚙️Chat Settings Management: Pin, Mute, Read, Disappearing.

This method is responsible for pinning and unpinning, for muting and unmuting your chats. Also this method is responsible for performing the action of reading an entire chat or marking a chat as unread

patch/chats/{ChatID}

Path parameters

ChatIDstring required

Chat ID

Chat ID

Request body

pinboolean

Pin or unpin chat

mute_untilinteger

Time until which the chat should remain muted, in UNIX timestamp format (in milliseconds). Use 0 to unmute the chat

mark_unreadboolean

Mark as unread/read chat

ephemeral'none' | 'day' | 'week' | 'quarter'

Amount of days to store messages, when set to none will store infinitely

Example request

{
  "pin": true,
  "mute_until": 1810364624000,
  "mark_unread": true,
  "ephemeral": "week"
}

Response

OK

successboolean