ReadReceiptInfo Class
General information about a read receipt.
Constructor
pydantic model ReadReceiptInfo
Parameters
| Name | Description |
|---|---|
|
last_read_message_id
Required
|
The id of the last read message. |
Keyword-Only Parameters
| Name | Description |
|---|---|
|
lastReadMessageId
|
Default value: None
|
Methods
| is_message_read |
Helper method useful for determining if a message has been read. This method converts the strings to integers. If the compare_message_id is less than or equal to the last_read_message_id, then the message has been read. |
| is_message_read_instance |
Helper method useful for determining if a message has been read. If the compare_message_id is less than or equal to the last_read_message_id, then the message has been read. |
is_message_read
Helper method useful for determining if a message has been read. This method converts the strings to integers. If the compare_message_id is less than or equal to the last_read_message_id, then the message has been read.
static is_message_read(compare_message_id: str, last_read_message_id: str) -> bool
Parameters
| Name | Description |
|---|---|
|
compare_message_id
Required
|
The id of the message to compare. |
|
last_read_message_id
Required
|
The id of the last message read by the user. |
Returns
| Type | Description |
|---|---|
|
True if the compare_message_id is less than or equal to the last_read_message_id. |
is_message_read_instance
Helper method useful for determining if a message has been read. If the compare_message_id is less than or equal to the last_read_message_id, then the message has been read.
is_message_read_instance(compare_message_id: str) -> bool
Parameters
| Name | Description |
|---|---|
|
compare_message_id
Required
|
The id of the message to compare. |
Returns
| Type | Description |
|---|---|
|
True if the compare_message_id is less than or equal to the last_read_message_id. |
Attributes
last_read_message_id
field last_read_message_id: str = None (alias 'lastReadMessageId')