Skip to content
Download Beeper

Messages

Manage messages in chats

Search messages
$client->messages->search(?list<string> accountIDs, ?list<string> chatIDs, ?ChatType chatType, ?string cursor, ?\Datetime dateAfter, ?\Datetime dateBefore, ?Direction direction, ?bool excludeLowPriority, ?bool includeMuted, ?int limit, ?list<MediaType> mediaTypes, ?string query, ?string sender): CursorSearch<Message>
GET/v1/messages/search
List messages
$client->messages->list(string chatID, ?string cursor, ?Direction direction): CursorSortKey<Message>
GET/v1/chats/{chatID}/messages
Send a message
$client->messages->send(string chatID, ?Attachment attachment, ?string replyToMessageID, ?string text): MessageSendResponse
POST/v1/chats/{chatID}/messages
Edit a message
$client->messages->update(string messageID, string chatID, string text): MessageUpdateResponse
PUT/v1/chats/{chatID}/messages/{messageID}