Class TdApi.GetPersonalChatHistory

Enclosing class:
TdApi

public static class TdApi.GetPersonalChatHistory extends TdApi.Function<TdApi.Messages>
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

    Fields
    Modifier and Type
    Field
    Description
    static final int
    Identifier uniquely determining type of the object.
    int
    The maximum number of messages to be returned; 1-20.
    long
    User identifier.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Default 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 Type
    Method
    Description
    int
    Returns an identifier uniquely determining type of the object.

    Methods inherited from class org.drinkless.tdlib.TdApi.Function

    toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • userId

      public long userId
      User identifier.
    • limit

      public int limit
      The maximum number of messages to be returned; 1-20.
    • CONSTRUCTOR

      public static final int CONSTRUCTOR
      Identifier 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