Class: TD::Types::InternalLinkType::MainWebApp
- Inherits:
-
TD::Types::InternalLinkType
- Object
- Dry::Struct
- Base
- TD::Types::InternalLinkType
- TD::Types::InternalLinkType::MainWebApp
- Defined in:
- lib/tdlib/types/internal_link_type/main_web_app.rb
Overview
The link is a link to the main Web App of a bot. Call searchPublicChat with the given bot username, check that the user is a bot and has the main Web App. If the bot can be added to attachment menu, then use getAttachmentMenuBot to receive information about the bot,
then if the bot isn't added to side menu, 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, then if the user accepts
the terms and confirms adding, use toggleBotIsAddedToAttachmentMenu to add the bot.
Then, use getMainWebApp with the given start parameter and open the returned URL as a Web App.
Instance Attribute Summary collapse
-
#bot_username ⇒ TD::Types::String
Username of the bot.
-
#is_compact ⇒ Boolean
True, if the Web App must be opened in the compact mode instead of the full-size mode.
-
#start_parameter ⇒ TD::Types::String
Start parameter to be passed to getMainWebApp.
Method Summary
Methods inherited from Base
Instance Attribute Details
#bot_username ⇒ TD::Types::String
Username of the bot.
13 14 15 |
# File 'lib/tdlib/types/internal_link_type/main_web_app.rb', line 13 def bot_username @bot_username end |
#is_compact ⇒ Boolean
True, if the Web App must be opened in the compact mode instead of the full-size mode.
13 14 15 |
# File 'lib/tdlib/types/internal_link_type/main_web_app.rb', line 13 def is_compact @is_compact end |
#start_parameter ⇒ TD::Types::String
Start parameter to be passed to getMainWebApp.
13 14 15 |
# File 'lib/tdlib/types/internal_link_type/main_web_app.rb', line 13 def start_parameter @start_parameter end |