Class: TD::Types::BotInfo
- Defined in:
- lib/tdlib/types/bot_info.rb
Overview
Contains information about a bot.
Instance Attribute Summary collapse
-
#animation ⇒ TD::Types::Animation?
Animation shown in the chat with the bot if the chat is empty; may be null.
-
#commands ⇒ Array<TD::Types::BotCommand>
List of the bot commands.
-
#default_channel_administrator_rights ⇒ TD::Types::ChatAdministratorRights?
Default administrator rights for adding the bot to channels; may be null.
-
#default_group_administrator_rights ⇒ TD::Types::ChatAdministratorRights?
Default administrator rights for adding the bot to basic group and supergroup chats; may be null.
-
#description ⇒ TD::Types::String
The text shown in the chat with the bot if the chat is empty.
-
#edit_commands_link ⇒ TD::Types::InternalLinkType?
The internal link, which can be used to edit bot commands; may be null.
-
#edit_description_link ⇒ TD::Types::InternalLinkType?
The internal link, which can be used to edit bot description; may be null.
-
#edit_description_media_link ⇒ TD::Types::InternalLinkType?
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.
-
#edit_settings_link ⇒ TD::Types::InternalLinkType?
The internal link, which can be used to edit bot settings; may be null.
-
#has_media_previews ⇒ Boolean
True, if the bot has media previews.
-
#menu_button ⇒ TD::Types::BotMenuButton?
Information about a button to show instead of the bot commands menu button; may be null if ordinary bot commands menu must be shown.
-
#photo ⇒ TD::Types::Photo?
Photo shown in the chat with the bot if the chat is empty; may be null.
-
#privacy_policy_url ⇒ TD::Types::String
The HTTP link to the privacy policy of the bot.
-
#short_description ⇒ TD::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.
Method Summary
Methods inherited from Base
Instance Attribute Details
#animation ⇒ TD::Types::Animation?
Animation shown in the chat with the bot if the chat is empty; may be null.
29 30 31 |
# File 'lib/tdlib/types/bot_info.rb', line 29 def animation @animation end |
#commands ⇒ Array<TD::Types::BotCommand>
List of the bot commands.
29 30 31 |
# File 'lib/tdlib/types/bot_info.rb', line 29 def commands @commands end |
#default_channel_administrator_rights ⇒ TD::Types::ChatAdministratorRights?
Default administrator rights for adding the bot to channels; may be null.
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_rights ⇒ TD::Types::ChatAdministratorRights?
Default administrator rights for adding the bot to basic group and supergroup chats; may be null.
29 30 31 |
# File 'lib/tdlib/types/bot_info.rb', line 29 def default_group_administrator_rights @default_group_administrator_rights end |
#description ⇒ TD::Types::String
The text shown in the chat with the bot if the chat is empty.
29 30 31 |
# File 'lib/tdlib/types/bot_info.rb', line 29 def description @description end |
#edit_commands_link ⇒ TD::Types::InternalLinkType?
The internal link, which can be used to edit bot commands; may be null.
29 30 31 |
# File 'lib/tdlib/types/bot_info.rb', line 29 def edit_commands_link @edit_commands_link end |
#edit_description_link ⇒ TD::Types::InternalLinkType?
The internal link, which can be used to edit bot description; may be null.
29 30 31 |
# File 'lib/tdlib/types/bot_info.rb', line 29 def edit_description_link @edit_description_link end |
#edit_description_media_link ⇒ TD::Types::InternalLinkType?
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.
29 30 31 |
# File 'lib/tdlib/types/bot_info.rb', line 29 def edit_description_media_link @edit_description_media_link end |
#edit_settings_link ⇒ TD::Types::InternalLinkType?
The internal link, which can be used to edit bot settings; may be null.
29 30 31 |
# File 'lib/tdlib/types/bot_info.rb', line 29 def edit_settings_link @edit_settings_link end |
#has_media_previews ⇒ Boolean
True, if the bot has media previews.
29 30 31 |
# File 'lib/tdlib/types/bot_info.rb', line 29 def has_media_previews @has_media_previews end |
#menu_button ⇒ TD::Types::BotMenuButton?
Information about a button to show instead of the bot commands menu button; may be null if ordinary bot commands menu must be shown.
29 30 31 |
# File 'lib/tdlib/types/bot_info.rb', line 29 def end |
#photo ⇒ TD::Types::Photo?
Photo shown in the chat with the bot if the chat is empty; may be null.
29 30 31 |
# File 'lib/tdlib/types/bot_info.rb', line 29 def photo @photo end |
#privacy_policy_url ⇒ TD::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.
29 30 31 |
# File 'lib/tdlib/types/bot_info.rb', line 29 def privacy_policy_url @privacy_policy_url end |
#short_description ⇒ TD::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.
29 30 31 |
# File 'lib/tdlib/types/bot_info.rb', line 29 def short_description @short_description end |