Class: TD::Types::BotInfo

Inherits:
Base
  • Object
show all
Defined in:
lib/tdlib/types/bot_info.rb

Overview

Contains information about a bot.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#animationTD::Types::Animation?

Animation shown in the chat with the bot if the chat is empty; may be null.

Returns:



29
30
31
# File 'lib/tdlib/types/bot_info.rb', line 29

def animation
  @animation
end

#commandsArray<TD::Types::BotCommand>

List of the bot commands.

Returns:



29
30
31
# File 'lib/tdlib/types/bot_info.rb', line 29

def commands
  @commands
end

#default_channel_administrator_rightsTD::Types::ChatAdministratorRights?

Default administrator rights for adding the bot to channels; may be null.

Returns:



29
30
31
# File 'lib/tdlib/types/bot_info.rb', line 29

def default_channel_administrator_rights
  @default_channel_administrator_rights
end

#default_group_administrator_rightsTD::Types::ChatAdministratorRights?

Default administrator rights for adding the bot to basic group and supergroup chats; may be null.

Returns:



29
30
31
# File 'lib/tdlib/types/bot_info.rb', line 29

def default_group_administrator_rights
  @default_group_administrator_rights
end

#descriptionTD::Types::String

The text shown in the chat with the bot if the chat is empty.

Returns:

  • (TD::Types::String)

    the current value of description



29
30
31
# File 'lib/tdlib/types/bot_info.rb', line 29

def description
  @description
end

The internal link, which can be used to edit bot commands; may be null.

Returns:



29
30
31
# File 'lib/tdlib/types/bot_info.rb', line 29

def edit_commands_link
  @edit_commands_link
end

The internal link, which can be used to edit bot description; may be null.

Returns:



29
30
31
# File 'lib/tdlib/types/bot_info.rb', line 29

def edit_description_link
  @edit_description_link
end

The internal link, which can be used to edit the photo or animation shown in the chat with the bot if the chat is empty; may be null.

Returns:



29
30
31
# File 'lib/tdlib/types/bot_info.rb', line 29

def edit_description_media_link
  @edit_description_media_link
end

The internal link, which can be used to edit bot settings; may be null.

Returns:



29
30
31
# File 'lib/tdlib/types/bot_info.rb', line 29

def edit_settings_link
  @edit_settings_link
end

#has_media_previewsBoolean

True, if the bot has media previews.

Returns:

  • (Boolean)

    the current value of has_media_previews



29
30
31
# File 'lib/tdlib/types/bot_info.rb', line 29

def has_media_previews
  @has_media_previews
end

Information about a button to show instead of the bot commands menu button; may be null if ordinary bot commands menu must be shown.

Returns:



29
30
31
# File 'lib/tdlib/types/bot_info.rb', line 29

def menu_button
  @menu_button
end

#photoTD::Types::Photo?

Photo shown in the chat with the bot if the chat is empty; may be null.

Returns:



29
30
31
# File 'lib/tdlib/types/bot_info.rb', line 29

def photo
  @photo
end

#privacy_policy_urlTD::Types::String

The HTTP link to the privacy policy of the bot. If empty, then /privacy command must be used if supported by the bot. If the command isn’t supported, then telegram.org/privacy-tpa must be opened.

Returns:

  • (TD::Types::String)

    the current value of privacy_policy_url



29
30
31
# File 'lib/tdlib/types/bot_info.rb', line 29

def privacy_policy_url
  @privacy_policy_url
end

#short_descriptionTD::Types::String

The text that is shown on the bot’s profile page and is sent together with the link when users share the bot.

Returns:

  • (TD::Types::String)

    the current value of short_description



29
30
31
# File 'lib/tdlib/types/bot_info.rb', line 29

def short_description
  @short_description
end