TDLib
|
Inherits td::td_api::Function.
Public Types | |
using | ReturnType = object_ptr< ok > |
Typedef for the type returned by the function. | |
Public Member Functions | |
viewMessages () | |
viewMessages (int53 chat_id_, array< int53 > &&message_ids_, object_ptr< MessageSource > &&source_, bool force_read_) | |
std::int32_t | get_id () const final |
void | store (TlStorerToString &s, const char *field_name) const final |
Public Member Functions inherited from td::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 |
Public Attributes | |
int53 | chat_id_ |
Chat identifier. | |
array< int53 > | message_ids_ |
The identifiers of the messages being viewed. | |
object_ptr< MessageSource > | source_ |
Source of the message view; pass null to guess the source based on chat open state. | |
bool | force_read_ |
Pass true to mark as read the specified messages even the chat is closed. | |
Static Public Attributes | |
static const std::int32_t | ID = 960236656 |
Identifier uniquely determining a type of the object. | |
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>.
td::td_api::viewMessages::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>.
td::td_api::viewMessages::viewMessages | ( | int53 | chat_id_, |
array< int53 > && | message_ids_, | ||
object_ptr< MessageSource > && | source_, | ||
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_ids_ | The identifiers of the messages being viewed. |
[in] | source_ | Source of the message view; pass null to guess the source based on chat open state. |
[in] | force_read_ | Pass true to mark as read the specified messages even the chat is closed. |
|
inlinefinalvirtual |
Returns identifier uniquely determining a type of the object.
Implements td::TlObject.
|
finalvirtual |
Helper function for to_string method. Appends string representation of the object to the storer.
[in] | s | Storer to which object string representation will be appended. |
[in] | field_name | Object field_name if applicable. |
Implements td::TlObject.