Skip to content

toggleBotIsAddedToAttachmentMenu

Function · TDLib 1.8.67 · d1085f9c

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

toggleBotIsAddedToAttachmentMenu(
  bot_user_id: int53,
  is_added: Bool,
  allow_write_access: Bool
) → Ok

bot_user_id

int53

Bot's user identifier

is_added

Bool

Pass true to add the bot to attachment menu; pass false to remove the bot from attachment menu

allow_write_access

Bool

Pass true if the current user allowed the bot to send them messages. Ignored if is_added is false