InternalLinkTypeAttachmentMenuBot


Object Hierarchy:

Object hierarchy for InternalLinkTypeAttachmentMenuBot

Description:

public class InternalLinkTypeAttachmentMenuBot : InternalLinkType

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 Client.search_public_chat with the given bot username, check that the user is a bot and can be added to attachment menu. Then, use Client.get_attachment_menu_bot to receive information about the bot. If the bot isn't added to attachment menu, then show a disclaimer about Mini Apps being third-party applications, ask the user to accept their Terms of service and confirm adding the bot to side and attachment menu. If the user accept the terms and confirms adding, then use Client.toggle_bot_is_added_to_attachment_menu to add the bot. 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 Client.open_web_app with the given URL


Namespace: TDLib
Package: valagram-1

Content:

Properties:

Creation methods:

Inherited Members:

All known members inherited from class TDLib.Error
All known members inherited from class GLib.Object