-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b052ef4
commit 9423462
Showing
3 changed files
with
55 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -155,6 +155,43 @@ GET /api/{session}/chats/{chatId}/messages/{messageId}?downloadMedia=true | |
- `messageId` - must be in format `{true|false}[email protected]_AAAAAAA`) | ||
- `downloadMedia` - download media files (images, files) or not | ||
|
||
### Pin message | ||
|
||
``` | ||
POST /api/{session}/chats/{chatId}/messages/{messageId}/pin | ||
``` | ||
|
||
Payload: | ||
```json | ||
{ | ||
"duration": 86400 | ||
} | ||
``` | ||
|
||
- 24 hours - `duration=86400` | ||
- 7 days - `duration=604800` | ||
- 30 days - `duration=2592000` | ||
|
||
Response: | ||
```json | ||
{ | ||
"success": true | ||
} | ||
``` | ||
|
||
### Unpin message | ||
|
||
``` | ||
POST /api/{session}/chats/{chatId}/messages/{messageId}/unpin | ||
``` | ||
|
||
Response: | ||
```json | ||
{ | ||
"success": true | ||
} | ||
``` | ||
|
||
### Edit message | ||
You can edit **text** messages or **"caption"** in media messages. | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters