List of all members | Public Fields | Public Types | Public Instance Methods | Static Public Attributes
getChatMessageCalendar Class Referencefinal

Inherits Function.

Description

Returns information about the next messages of the specified type in the chat split by days. Returns the results in reverse chronological order. Can return partial result for the last returned day. Behavior of this method depends on the value of the option "utc_time_offset".

Returns object_ptr<MessageCalendar>.

Public Fields

int53 chat_id_
 Identifier of the chat in which to return information about messages.
 
object_ptr< SearchMessagesFilterfilter_
 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 messages; use 0 to get results from the last message.
 
int53 saved_messages_topic_id_
 If not0, only messages in the specified Saved Messages topic will be considered; pass 0 to consider all messages, or for chats other than Saved Messages.
 

Public Types

using ReturnType = object_ptr< messageCalendar >
 Typedef for the type returned by the function.
 

Public Instance Methods

 getChatMessageCalendar ()
 
 getChatMessageCalendar (int53 chat_id_, object_ptr< SearchMessagesFilter > &&filter_, int53 from_message_id_, int53 saved_messages_topic_id_)
 
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
 
TlObjectoperator= (const TlObject &)=delete
 
 TlObject (TlObject &&)=default
 
TlObjectoperator= (TlObject &&)=default
 
virtual ~TlObject ()=default
 

Static Public Attributes

static const std::int32_t ID = -2119225929
 Identifier uniquely determining a type of the object.
 

Constructor & Destructor Documentation

◆ getChatMessageCalendar() [1/2]

Default constructor for a function, which returns information about the next messages of the specified type in the chat split by days. Returns the results in reverse chronological order. Can return partial result for the last returned day. Behavior of this method depends on the value of the option "utc_time_offset".

Returns object_ptr<MessageCalendar>.

◆ getChatMessageCalendar() [2/2]

getChatMessageCalendar ( int53  chat_id_,
object_ptr< SearchMessagesFilter > &&  filter_,
int53  from_message_id_,
int53  saved_messages_topic_id_ 
)

Creates a function, which returns information about the next messages of the specified type in the chat split by days. Returns the results in reverse chronological order. Can return partial result for the last returned day. Behavior of this method depends on the value of the option "utc_time_offset".

Returns object_ptr<MessageCalendar>.

Parameters
[in]chat_id_Identifier of the chat in which to return information about messages.
[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 messages; use 0 to get results from the last message.
[in]saved_messages_topic_id_If not0, only messages in the specified Saved Messages topic will be considered; pass 0 to consider all messages, or for chats other than Saved Messages.

Method Documentation

◆ store()

void store ( TlStorerToString &  s,
const char *  field_name 
) const
finalvirtual

Helper function for to_string method. Appends string representation of the object to the storer.

Parameters
[in]sStorer to which object string representation will be appended.
[in]field_nameObject field_name if applicable.

Implements TlObject.


The documentation for this class was generated from the following file: