Inherits Function.
Informs TDLib that messages are being viewed by the user. Sponsored messages must be marked as viewed only when the entire text of the message is shown on the screen (excluding the button). Many useful activities depend on whether the messages are currently being viewed or not (e.g., marking messages as read, incrementing a view counter, updating a view counter, removing deleted messages in supergroups and channels).
Returns object_ptr<Ok>.
Public Fields | |
int53 | chat_id_ |
Chat identifier. | |
int53 | message_thread_id_ |
If not 0, a message thread identifier in which the messages are being viewed. | |
array< int53 > | message_ids_ |
The identifiers of the messages being viewed. | |
bool | force_read_ |
True, if messages in closed chats must be marked as read by the request. | |
Public Types | |
using | ReturnType = object_ptr< ok > |
Typedef for the type returned by the function. | |
Public Instance Methods | |
viewMessages () | |
viewMessages (int53 chat_id_, int53 message_thread_id_, array< int53 > &&message_ids_, bool force_read_) | |
std::int32_t | get_id () const final |
void | store (TlStorerToString &s, const char *field_name) const final |
Public Instance Methods inherited from TlObject | |
virtual void | store (TlStorerUnsafe &s) const |
virtual void | store (TlStorerCalcLength &s) const |
TlObject ()=default | |
TlObject (const TlObject &)=delete | |
TlObject & | operator= (const TlObject &)=delete |
TlObject (TlObject &&)=default | |
TlObject & | operator= (TlObject &&)=default |
virtual | ~TlObject ()=default |
Static Public Attributes | |
static const std::int32_t | ID = -1155961496 |
Identifier uniquely determining a type of the object. | |
viewMessages | ( | ) |
Default constructor for a function, which informs TDLib that messages are being viewed by the user. Sponsored messages must be marked as viewed only when the entire text of the message is shown on the screen (excluding the button). Many useful activities depend on whether the messages are currently being viewed or not (e.g., marking messages as read, incrementing a view counter, updating a view counter, removing deleted messages in supergroups and channels).
Returns object_ptr<Ok>.
viewMessages | ( | int53 | chat_id_, |
int53 | message_thread_id_, | ||
array< int53 > && | message_ids_, | ||
bool | force_read_ | ||
) |
Creates a function, which informs TDLib that messages are being viewed by the user. Sponsored messages must be marked as viewed only when the entire text of the message is shown on the screen (excluding the button). Many useful activities depend on whether the messages are currently being viewed or not (e.g., marking messages as read, incrementing a view counter, updating a view counter, removing deleted messages in supergroups and channels).
Returns object_ptr<Ok>.
[in] | chat_id_ | Chat identifier. |
[in] | message_thread_id_ | If not 0, a message thread identifier in which the messages are being viewed. |
[in] | message_ids_ | The identifiers of the messages being viewed. |
[in] | force_read_ | True, if messages in closed chats must be marked as read by the request. |
|
inlinefinalvirtual |
|
finalvirtual |