Module tdlight.api

Class TdApi.BusinessInfo

java.lang.Object
it.tdlight.jni.TdApi.Object
it.tdlight.jni.TdApi.BusinessInfo
Enclosing class:
TdApi

public static final class TdApi.BusinessInfo extends TdApi.Object
Contains information about a Telegram Business account.
  • Field Details

    • location

      public TdApi.BusinessLocation location
      Location of the business; may be null if none.
    • openingHours

      public TdApi.BusinessOpeningHours openingHours
      Opening hours of the business; may be null if none. The hours are guaranteed to be valid and has already been split by week days.
    • greetingMessageSettings

      public TdApi.BusinessGreetingMessageSettings greetingMessageSettings
      The greeting message; may be null if none or the Business account is not of the current user.
    • awayMessageSettings

      public TdApi.BusinessAwayMessageSettings awayMessageSettings
      The away message; may be null if none or the Business account is not of the current user.
    • CONSTRUCTOR

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

    • BusinessInfo

      public BusinessInfo()
      Contains information about a Telegram Business account.
    • BusinessInfo

      public BusinessInfo(TdApi.BusinessLocation location, TdApi.BusinessOpeningHours openingHours, TdApi.BusinessGreetingMessageSettings greetingMessageSettings, TdApi.BusinessAwayMessageSettings awayMessageSettings)
      Contains information about a Telegram Business account.
      Parameters:
      location - Location of the business; may be null if none.
      openingHours - Opening hours of the business; may be null if none. The hours are guaranteed to be valid and has already been split by week days.
      greetingMessageSettings - The greeting message; may be null if none or the Business account is not of the current user.
      awayMessageSettings - The away message; may be null if none or the Business account is not of the current user.
    • BusinessInfo

      public BusinessInfo(DataInput input) throws IOException
      Contains information about a Telegram Business account.
      Parameters:
      input - Serialized input
      Throws:
      IOException - the deserialization failed
  • 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
    • serialize

      public void serialize(DataOutput output) throws IOException
      Serialize the TDLib class
      Specified by:
      serialize in class TdApi.Object
      Parameters:
      output - output data stream
      Throws:
      IOException - the serialization failed
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object