Package org.drinkless.tdlib
Class TdApi.GetChatMessageByDate
- Enclosing class:
- TdApi
Returns the last message sent in a chat no later than the specified date. Returns a 404 error if such message doesn't exist.
Returns Message
-
Field Summary
FieldsModifier and TypeFieldDescriptionlongChat identifier.static final intIdentifier uniquely determining type of the object.intPoint in time (Unix timestamp) relative to which to search for messages. -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor for a function, which returns the last message sent in a chat no later than the specified date.GetChatMessageByDate(long chatId, int date) Creates a function, which returns the last message sent in a chat no later than the specified date. -
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 chatIdChat identifier. -
date
public int datePoint in time (Unix timestamp) relative to which to search for messages. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
GetChatMessageByDate
public GetChatMessageByDate()Default constructor for a function, which returns the last message sent in a chat no later than the specified date. Returns a 404 error if such message doesn't exist.Returns
Message -
GetChatMessageByDate
public GetChatMessageByDate(long chatId, int date) Creates a function, which returns the last message sent in a chat no later than the specified date. Returns a 404 error if such message doesn't exist.Returns
Message- Parameters:
chatId- Chat identifier.date- Point in time (Unix timestamp) relative to which to search for 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.Object- Returns:
- this.CONSTRUCTOR
-