Module tdlight.api

Class TdApi.MessageBotWriteAccessAllowed

java.lang.Object
it.tdlight.jni.TdApi.Object
it.tdlight.jni.TdApi.MessageContent
it.tdlight.jni.TdApi.MessageBotWriteAccessAllowed
Enclosing class:
TdApi

public static final class TdApi.MessageBotWriteAccessAllowed extends TdApi.MessageContent
The user allowed the bot to send messages.
  • Field Details

    • webApp

      public TdApi.WebApp webApp
      Information about the Web App, which requested the access; may be null if none or the Web App was opened from the attachment menu.
    • byRequest

      public boolean byRequest
      True, if user allowed the bot to send messages by an explicit call to allowBotToSendMessages.
    • CONSTRUCTOR

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

    • MessageBotWriteAccessAllowed

      public MessageBotWriteAccessAllowed()
      The user allowed the bot to send messages.
    • MessageBotWriteAccessAllowed

      public MessageBotWriteAccessAllowed(TdApi.WebApp webApp, boolean byRequest)
      The user allowed the bot to send messages.
      Parameters:
      webApp - Information about the Web App, which requested the access; may be null if none or the Web App was opened from the attachment menu.
      byRequest - True, if user allowed the bot to send messages by an explicit call to allowBotToSendMessages.
    • MessageBotWriteAccessAllowed

      public MessageBotWriteAccessAllowed(DataInput input) throws IOException
      The user allowed the bot to send messages.
      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