You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: messages/README.md
+35-2
Original file line number
Diff line number
Diff line change
@@ -26,7 +26,7 @@ This message can now be sent with
26
26
vonage_client.messages.send(message)
27
27
```
28
28
29
-
All possible message types from every message channel have their own message model. They are named following this rule: {Channel}{MessageType}, e.g. `Sms`, `MmsImage`, `MessengerAudio`, `WhatsappSticker`, `ViberVideo`, etc.
29
+
All possible message types from every message channel have their own message model. They are named following this rule: {Channel}{MessageType}, e.g. `Sms`, `MmsImage`, `RcsFile`, `MessengerAudio`, `WhatsappSticker`, `ViberVideo`, etc.
30
30
31
31
The different message models are listed at the bottom of the page.
32
32
@@ -64,14 +64,47 @@ message = Sms(
64
64
vonage_client.messages.send(message)
65
65
```
66
66
67
+
### Mark a WhatsApp Message as Read
68
+
69
+
Note: to use this method, update the `api_host` attribute of the `vonage_http_client.HttpClientOptions` object to the API endpoint corresponding to the region where the WhatsApp number is hosted.
70
+
71
+
For example, to use the EU API endpoint, set the `api_host` attribute to 'api-eu.vonage.com'.
72
+
73
+
```python
74
+
from vonage import Vonage, Auth, HttpClientOptions
Note: as above, to use this method you need to update the `api_host` attribute of the `vonage_http_client.HttpClientOptions` object to the API endpoint corresponding to the region where the WhatsApp number is hosted.
86
+
87
+
For example, to use the EU API endpoint, set the `api_host` attribute to 'api-eu.vonage.com'.
88
+
89
+
```python
90
+
from vonage import Vonage, Auth, HttpClientOptions
0 commit comments