Module tdlight.api

Class TdApi.BusinessAwayMessageSettings

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

public static final class TdApi.BusinessAwayMessageSettings extends TdApi.Object
Describes settings for messages that are automatically sent by a Telegram Business account when it is away.
  • Field Details

    • shortcutId

      public int shortcutId
      Unique quick reply shortcut identifier for the away messages.
    • recipients

      public TdApi.BusinessRecipients recipients
      Chosen recipients of the away messages.
    • schedule

      Settings used to check whether the current user is away.
    • offlineOnly

      public boolean offlineOnly
      True, if the messages must not be sent if the account was online in the last 10 minutes.
    • CONSTRUCTOR

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

    • BusinessAwayMessageSettings

      public BusinessAwayMessageSettings()
      Describes settings for messages that are automatically sent by a Telegram Business account when it is away.
    • BusinessAwayMessageSettings

      public BusinessAwayMessageSettings(int shortcutId, TdApi.BusinessRecipients recipients, TdApi.BusinessAwayMessageSchedule schedule, boolean offlineOnly)
      Describes settings for messages that are automatically sent by a Telegram Business account when it is away.
      Parameters:
      shortcutId - Unique quick reply shortcut identifier for the away messages.
      recipients - Chosen recipients of the away messages.
      schedule - Settings used to check whether the current user is away.
      offlineOnly - True, if the messages must not be sent if the account was online in the last 10 minutes.
    • BusinessAwayMessageSettings

      public BusinessAwayMessageSettings(DataInput input) throws IOException
      Describes settings for messages that are automatically sent by a Telegram Business account when it is away.
      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