InternalLinkTypeAttachmentMenuBot constructor

const InternalLinkTypeAttachmentMenuBot({
  1. required TargetChat targetChat,
  2. required String botUsername,
  3. required String url,
  4. dynamic extra,
  5. int? clientId,
})

The link is a link to an attachment menu bot to be opened in the specified or a chosen chat. Process given target_chat to open the chat.. Then, call searchPublicChat with the given bot username, check that the user is a bot and can be added to attachment menu. Then, use getAttachmentMenuBot to receive information about the bot.. If the bot isn't added to attachment menu, then user needs to confirm adding the bot to attachment menu. If user confirms adding, then use toggleBotIsAddedToAttachmentMenu to add it.. If the attachment menu bot can't be used in the opened chat, show an error to the user. If the bot is added to attachment menu and can be used in the chat, then use openWebApp with the given URL

Implementation

const InternalLinkTypeAttachmentMenuBot({
  required this.targetChat,
  required this.botUsername,
  required this.url,
  this.extra,
  this.clientId,
});