Package org.drinkless.tdlib
Class TdApi.GetChatMessageCalendar
java.lang.Object
org.drinkless.tdlib.TdApi.Object
org.drinkless.tdlib.TdApi.Function<TdApi.MessageCalendar>
org.drinkless.tdlib.TdApi.GetChatMessageCalendar
- Enclosing class:
- TdApi
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 MessageCalendar
-
Nested Class Summary
Nested classes/interfaces inherited from class org.drinkless.tdlib.TdApi.Function
TdApi.Function.Constructors -
Field Summary
FieldsModifier and TypeFieldDescriptionlongIdentifier of the chat in which to return information about messages.static final intIdentifier uniquely determining type of the object.Filter for message content.longThe message identifier from which to return information about messages; use 0 to get results from the last message.longIf 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. -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor for a function, which returns information about the next messages of the specified type in the chat split by days.GetChatMessageCalendar(long chatId, TdApi.SearchMessagesFilter filter, long fromMessageId, long savedMessagesTopicId) Creates a function, which returns information about the next messages of the specified type in the chat split by days. -
Method Summary
Modifier and TypeMethodDescriptionintReturns an identifier uniquely determining type of the object.Methods inherited from class org.drinkless.tdlib.TdApi.Function
toString
-
Field Details
-
chatId
public long chatIdIdentifier of the chat in which to return information about messages. -
filter
Filter for message content. Filters searchMessagesFilterEmpty, searchMessagesFilterMention, searchMessagesFilterUnreadMention, and searchMessagesFilterUnreadReaction are unsupported in this function. -
fromMessageId
public long fromMessageIdThe message identifier from which to return information about messages; use 0 to get results from the last message. -
savedMessagesTopicId
public long savedMessagesTopicIdIf 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. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
GetChatMessageCalendar
public GetChatMessageCalendar()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
MessageCalendar -
GetChatMessageCalendar
public GetChatMessageCalendar(long chatId, TdApi.SearchMessagesFilter filter, long fromMessageId, long savedMessagesTopicId) 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
MessageCalendar- Parameters:
chatId- Identifier of the chat in which to return information about messages.filter- Filter for message content. Filters searchMessagesFilterEmpty, searchMessagesFilterMention, searchMessagesFilterUnreadMention, and searchMessagesFilterUnreadReaction are unsupported in this function.fromMessageId- The message identifier from which to return information about messages; use 0 to get results from the last message.savedMessagesTopicId- 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 Details
-
getConstructor
public int getConstructor()Description copied from class:TdApi.ObjectReturns an identifier uniquely determining type of the object.- Specified by:
getConstructorin classTdApi.Function<TdApi.MessageCalendar>- Returns:
- this.CONSTRUCTOR
-