Class: TD::Types::InternalLinkType::BotStart
- Inherits:
-
TD::Types::InternalLinkType
- Object
- Dry::Struct
- Base
- TD::Types::InternalLinkType
- TD::Types::InternalLinkType::BotStart
- Defined in:
- lib/tdlib/types/internal_link_type/bot_start.rb
Overview
The link is a link to a chat with a Telegram bot. Call searchPublicChat with the given bot username, check that the user is a bot, show START button in the chat with
the bot, and then call sendBotStartMessage with the given start parameter after the button is pressed.
Instance Attribute Summary collapse
-
#autostart ⇒ Boolean
True, if sendBotStartMessage must be called automatically without showing the START button.
-
#bot_username ⇒ TD::Types::String
Username of the bot.
-
#start_parameter ⇒ TD::Types::String
The parameter to be passed to sendBotStartMessage.
Method Summary
Methods inherited from Base
Instance Attribute Details
#autostart ⇒ Boolean
True, if sendBotStartMessage must be called automatically without showing the START button.
10 11 12 |
# File 'lib/tdlib/types/internal_link_type/bot_start.rb', line 10 def autostart @autostart end |
#bot_username ⇒ TD::Types::String
Username of the bot.
10 11 12 |
# File 'lib/tdlib/types/internal_link_type/bot_start.rb', line 10 def bot_username @bot_username end |
#start_parameter ⇒ TD::Types::String
The parameter to be passed to sendBotStartMessage.
10 11 12 |
# File 'lib/tdlib/types/internal_link_type/bot_start.rb', line 10 def start_parameter @start_parameter end |