Class TdApi.SetMessageSenderBotVerification

java.lang.Object
org.drinkless.tdlib.TdApi.Object
org.drinkless.tdlib.TdApi.Function<TdApi.Ok>
org.drinkless.tdlib.TdApi.SetMessageSenderBotVerification
Enclosing class:
TdApi

public static class TdApi.SetMessageSenderBotVerification extends TdApi.Function<TdApi.Ok>
Changes the verification status of a user or a chat by an owned bot.

Returns Ok

  • Field Details

    • botUserId

      public long botUserId
      Identifier of the owned bot, which will verify the user or the chat.
    • verifiedId

      public TdApi.MessageSender verifiedId
      Identifier of the user or the supergroup or channel chat, which will be verified by the bot.
    • customDescription

      public String customDescription
      Custom description of verification reason; 0-getOption("bot_verification_custom_description_length_max"). If empty, then "was verified by organization "organization_name"" will be used as description. Can be specified only if the bot is allowed to provide custom description.
    • CONSTRUCTOR

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

    • SetMessageSenderBotVerification

      public SetMessageSenderBotVerification()
      Default constructor for a function, which changes the verification status of a user or a chat by an owned bot.

      Returns Ok

    • SetMessageSenderBotVerification

      public SetMessageSenderBotVerification(long botUserId, TdApi.MessageSender verifiedId, String customDescription)
      Creates a function, which changes the verification status of a user or a chat by an owned bot.

      Returns Ok

      Parameters:
      botUserId - Identifier of the owned bot, which will verify the user or the chat.
      verifiedId - Identifier of the user or the supergroup or channel chat, which will be verified by the bot.
      customDescription - Custom description of verification reason; 0-getOption("bot_verification_custom_description_length_max"). If empty, then "was verified by organization "organization_name"" will be used as description. Can be specified only if the bot is allowed to provide custom description.
  • 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