ToggleBotIsAddedToAttachmentMenu class final
ToggleBotIsAddedToAttachmentMenu (toggleBotIsAddedToAttachmentMenu) - TDLib function
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.
- botUserId: Bot's user identifier.
- isAdded: Pass true to add the bot to attachment menu; pass false to remove the bot from attachment menu.
- allowWriteAccess: Pass true if the current user allowed the bot to send them messages. Ignored if is_added is false.
Ok is returned on completion.
- Inheritance
-
- Object
- TdFunction
- ToggleBotIsAddedToAttachmentMenu
Constructors
- ToggleBotIsAddedToAttachmentMenu({required int botUserId, required bool isAdded, required bool allowWriteAccess})
-
ToggleBotIsAddedToAttachmentMenu (toggleBotIsAddedToAttachmentMenu) - TDLib function
const
Properties
- allowWriteAccess → bool
-
Pass true if the current user allowed the bot to send them messages. Ignored if is_added is false
final
- botUserId → int
-
Bot's user identifier
final
- currentObjectId → String
-
TDLib object type for current class instance
no setteroverride
- hashCode → int
-
The hash code for this object.
no setterinherited
- isAdded → bool
-
Pass true to add the bot to attachment menu; pass false to remove the bot from attachment menu
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
copyWith(
{int? botUserId, bool? isAdded, bool? allowWriteAccess}) → ToggleBotIsAddedToAttachmentMenu - Copy model with modified properties.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
[dynamic extra]) → Map< String, dynamic> -
Convert model to TDLib JSON format
override
-
toString(
) → String -
Convert model to TDLib JSON format, encoded into String.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- defaultObjectId → const String
- TDLib object type