SetMessageSenderBotVerification class final
Changes the verification status of a user or a chat by an owned bot
Returns Ok.
- Inheritance
-
- Object
- TdFunction<
Ok> - SetMessageSenderBotVerification
Constructors
- SetMessageSenderBotVerification({required int botUserId, required MessageSender verifiedId, required FormattedText customDescription})
-
Changes the verification status of a user or a chat by an owned bot
const
Properties
- botUserId → int
-
Identifier of the owned bot, which will verify the user or the chat
final
- canBeCalledSynchronously → bool
-
Whether TDLib documents this request as callable through
td_execute.no setterinherited - customDescription → FormattedText
-
Custom description of verification reason; 0-getOption("bot_verification_custom_description_length_max") characters. Only TextUrl entities are supported. 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
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- verifiedId → MessageSender
-
Identifier of the user or the supergroup or channel chat, which will be verified by the bot
final
Methods
-
copyWith(
{int? botUserId, MessageSender? verifiedId, FormattedText? customDescription}) → SetMessageSenderBotVerification -
Returns a copy with the given fields replaced. For a nullable
field pass a function, e.g.
field: () => nullto clear it. -
getConstructor(
) → String -
TDLib function name, e.g.
getMe.override -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
[dynamic extra]) → Map< String, dynamic> -
Converts this request to TDLib JSON, tagged with
extraif given.override -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- CONSTRUCTOR → const String
- TDLib type name.