Package org.drinkless.tdlib
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
Changes the verification status of a user or a chat by an owned bot.
Returns Ok
-
Field Summary
FieldsModifier and TypeFieldDescriptionlongIdentifier of the owned bot, which will verify the user or the chat.static final intIdentifier uniquely determining type of the object.Custom description of verification reason; 0-getOption("bot_verification_custom_description_length_max").Identifier of the user or the supergroup or channel chat, which will be verified by the bot. -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor for a function, which changes the verification status of a user or a chat by an owned bot.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. -
Method Summary
Modifier and TypeMethodDescriptionintReturns an identifier uniquely determining type of the object.Methods inherited from class org.drinkless.tdlib.TdApi.Function
toString
-
Field Details
-
botUserId
public long botUserIdIdentifier 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. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier 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.ObjectReturns an identifier uniquely determining type of the object.- Specified by:
getConstructorin classTdApi.Object- Returns:
- this.CONSTRUCTOR
-