TDLib
|
Inherits td::td_api::Function.
Public Types | |
using | ReturnType = object_ptr< messagePositions > |
Typedef for the type returned by the function. | |
Public Member Functions | |
getChatSparseMessagePositions () | |
getChatSparseMessagePositions (int53 chat_id_, object_ptr< SearchMessagesFilter > &&filter_, int53 from_message_id_, int32 limit_) | |
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_ |
Identifier of the chat in which to return information about message positions. | |
object_ptr< SearchMessagesFilter > | filter_ |
Filter for message content. Filters searchMessagesFilterEmpty, searchMessagesFilterMention, searchMessagesFilterUnreadMention, and searchMessagesFilterUnreadReaction are unsupported in this function. | |
int53 | from_message_id_ |
The message identifier from which to return information about message positions. | |
int32 | limit_ |
The expected number of message positions to be returned; 50-2000. A smaller number of positions can be returned, if there are not enough appropriate messages. | |
Static Public Attributes | |
static const std::int32_t | ID = -462227580 |
Identifier uniquely determining a type of the object. | |
Returns sparse positions of messages of the specified type in the chat to be used for shared media scroll implementation. Returns the results in reverse chronological order (i.e., in order of decreasing message_id). Cannot be used in secret chats or with searchMessagesFilterFailedToSend filter without an enabled message database.
Returns object_ptr<MessagePositions>.
td::td_api::getChatSparseMessagePositions::getChatSparseMessagePositions | ( | ) |
Default constructor for a function, which returns sparse positions of messages of the specified type in the chat to be used for shared media scroll implementation. Returns the results in reverse chronological order (i.e., in order of decreasing message_id). Cannot be used in secret chats or with searchMessagesFilterFailedToSend filter without an enabled message database.
Returns object_ptr<MessagePositions>.
td::td_api::getChatSparseMessagePositions::getChatSparseMessagePositions | ( | int53 | chat_id_, |
object_ptr< SearchMessagesFilter > && | filter_, | ||
int53 | from_message_id_, | ||
int32 | limit_ | ||
) |
Creates a function, which returns sparse positions of messages of the specified type in the chat to be used for shared media scroll implementation. Returns the results in reverse chronological order (i.e., in order of decreasing message_id). Cannot be used in secret chats or with searchMessagesFilterFailedToSend filter without an enabled message database.
Returns object_ptr<MessagePositions>.
[in] | chat_id_ | Identifier of the chat in which to return information about message positions. |
[in] | filter_ | Filter for message content. Filters searchMessagesFilterEmpty, searchMessagesFilterMention, searchMessagesFilterUnreadMention, and searchMessagesFilterUnreadReaction are unsupported in this function. |
[in] | from_message_id_ | The message identifier from which to return information about message positions. |
[in] | limit_ | The expected number of message positions to be returned; 50-2000. A smaller number of positions can be returned, if there are not enough appropriate messages. |
|
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.