ToggleBotIsAddedToAttachmentMenu class

Adds or removes a bot to attachment and side menu. Bot can be added to the menu, only if userTypeBot.can_be_added_to_attachment_menu == true.

Returns Ok.

Inheritance
Available Extensions

Constructors

ToggleBotIsAddedToAttachmentMenu({required int bot_user_id, required bool is_added, required bool allow_write_access, int? extra, int? clientId})
Adds or removes a bot to attachment and side menu. Bot can be added to the menu, only if userTypeBot.can_be_added_to_attachment_menu == true

Properties

allow_write_access bool
Pass true if the current user allowed the bot to send them messages. Ignored if is_added is false.
read / write
bot_user_id int
Bot's user identifier.
read / write
clientId int?
TDLib client instance identifier, for which the response was received.
read / writeoverride
extra int?
Request identifier. Must be non-zero.
read / writeoverride
hashCode int
The hash code for this object.
read-onlyinherited
is_added bool
Pass true to add the bot to attachment menu; pass false to remove the bot from attachment menu.
read / write
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Object to Map serializer
override
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

fromMap(Map<String, dynamic>? _map) ToggleBotIsAddedToAttachmentMenu?
Construct from Map.
override

Constants

CONSTRUCTOR → const String
@type
"toggleBotIsAddedToAttachmentMenu"