Class: TD::Types::InternalLinkType::BotStart

Inherits:
TD::Types::InternalLinkType show all
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

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#autostartBoolean

True, if sendBotStartMessage must be called automatically without showing the START button.

Returns:

  • (Boolean)

    the current value of autostart



10
11
12
# File 'lib/tdlib/types/internal_link_type/bot_start.rb', line 10

def autostart
  @autostart
end

#bot_usernameTD::Types::String

Username of the bot.

Returns:

  • (TD::Types::String)

    the current value of bot_username



10
11
12
# File 'lib/tdlib/types/internal_link_type/bot_start.rb', line 10

def bot_username
  @bot_username
end

#start_parameterTD::Types::String

The parameter to be passed to sendBotStartMessage.

Returns:

  • (TD::Types::String)

    the current value of start_parameter



10
11
12
# File 'lib/tdlib/types/internal_link_type/bot_start.rb', line 10

def start_parameter
  @start_parameter
end