Package org.drinkless.tdlib
Class TdApi.GetPersonalChatHistory
- Enclosing class:
TdApi
Returns messages in the personal chat of a given user; for bots only.
Returns Messages
-
Nested Class Summary
Nested classes/interfaces inherited from class org.drinkless.tdlib.TdApi.Function
TdApi.Function.Constructors -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intIdentifier uniquely determining type of the object.intThe maximum number of messages to be returned; 1-20.longUser identifier. -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor for a function, which returns messages in the personal chat of a given user; for bots only.GetPersonalChatHistory(long userId, int limit) Creates a function, which returns messages in the personal chat of a given user; for bots only. -
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
-
userId
public long userIdUser identifier. -
limit
public int limitThe maximum number of messages to be returned; 1-20. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
GetPersonalChatHistory
public GetPersonalChatHistory()Default constructor for a function, which returns messages in the personal chat of a given user; for bots only.Returns
Messages -
GetPersonalChatHistory
public GetPersonalChatHistory(long userId, int limit) Creates a function, which returns messages in the personal chat of a given user; for bots only.Returns
Messages- Parameters:
userId- User identifier.limit- The maximum number of messages to be returned; 1-20.
-
-
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.Messages>- Returns:
- this.CONSTRUCTOR
-