Class TdApi.BusinessConnection

java.lang.Object
dev.voroby.springframework.telegram.client.TdApi.Object
dev.voroby.springframework.telegram.client.TdApi.BusinessConnection
Enclosing class:
TdApi

public static class TdApi.BusinessConnection extends TdApi.Object
Describes a connection of the bot with a business account.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    boolean
    True, if the bot can send messages to the connected user; false otherwise.
    static final int
    Identifier uniquely determining type of the object.
    int
    Point in time (Unix timestamp) when the connection was established.
    Unique identifier of the connection.
    boolean
    True, if the connection is enabled; false otherwise.
    long
    Chat identifier of the private chat with the user.
    long
    Identifier of the business user that created the connection.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Describes a connection of the bot with a business account.
    BusinessConnection(String id, long userId, long userChatId, int date, boolean canReply, boolean isEnabled)
    Describes a connection of the bot with a business account.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Returns an identifier uniquely determining type of the object.

    Methods inherited from class dev.voroby.springframework.telegram.client.TdApi.Object

    toString

    Methods inherited from class java.lang.Object

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

    • id

      public String id
      Unique identifier of the connection.
    • userId

      public long userId
      Identifier of the business user that created the connection.
    • userChatId

      public long userChatId
      Chat identifier of the private chat with the user.
    • date

      public int date
      Point in time (Unix timestamp) when the connection was established.
    • canReply

      public boolean canReply
      True, if the bot can send messages to the connected user; false otherwise.
    • isEnabled

      public boolean isEnabled
      True, if the connection is enabled; false otherwise.
    • CONSTRUCTOR

      public static final int CONSTRUCTOR
      Identifier uniquely determining type of the object.
      See Also:
  • Constructor Details

    • BusinessConnection

      public BusinessConnection()
      Describes a connection of the bot with a business account.
    • BusinessConnection

      public BusinessConnection(String id, long userId, long userChatId, int date, boolean canReply, boolean isEnabled)
      Describes a connection of the bot with a business account.
      Parameters:
      id - Unique identifier of the connection.
      userId - Identifier of the business user that created the connection.
      userChatId - Chat identifier of the private chat with the user.
      date - Point in time (Unix timestamp) when the connection was established.
      canReply - True, if the bot can send messages to the connected user; false otherwise.
      isEnabled - True, if the connection is enabled; false otherwise.
  • Method Details

    • getConstructor

      public int getConstructor()
      Description copied from class: TdApi.Object
      Returns an identifier uniquely determining type of the object.
      Specified by:
      getConstructor in class TdApi.Object
      Returns:
      this.CONSTRUCTOR