Class: TD::Types::UserType::Bot

Inherits:
TD::Types::UserType show all
Defined in:
lib/tdlib/types/user_type/bot.rb

Overview

A bot (see core.telegram.org/bots).

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#active_user_countInteger

The number of recently active users of the bot.

Returns:

  • (Integer)

    the current value of active_user_count



20
21
22
# File 'lib/tdlib/types/user_type/bot.rb', line 20

def active_user_count
  @active_user_count
end

#can_be_added_to_attachment_menuBoolean

True, if the bot can be added to attachment or side menu.

Returns:

  • (Boolean)

    the current value of can_be_added_to_attachment_menu



20
21
22
# File 'lib/tdlib/types/user_type/bot.rb', line 20

def can_be_added_to_attachment_menu
  @can_be_added_to_attachment_menu
end

#can_be_editedBoolean

True, if the bot is owned by the current user and can be edited using the methods toggleBotUsernameIsActive, reorderBotActiveUsernames, setBotProfilePhoto, setBotName, setBotInfoDescription, and setBotInfoShortDescription.

Returns:

  • (Boolean)

    the current value of can_be_edited



20
21
22
# File 'lib/tdlib/types/user_type/bot.rb', line 20

def can_be_edited
  @can_be_edited
end

#can_connect_to_businessBoolean

True, if the bot supports connection to Telegram Business accounts.

Returns:

  • (Boolean)

    the current value of can_connect_to_business



20
21
22
# File 'lib/tdlib/types/user_type/bot.rb', line 20

def can_connect_to_business
  @can_connect_to_business
end

#can_join_groupsBoolean

True, if the bot can be invited to basic group and supergroup chats.

Returns:

  • (Boolean)

    the current value of can_join_groups



20
21
22
# File 'lib/tdlib/types/user_type/bot.rb', line 20

def can_join_groups
  @can_join_groups
end

#can_read_all_group_messagesBoolean

True, if the bot can read all messages in basic group or supergroup chats and not just those addressed to the bot. In private and channel chats a bot can always read all messages.

Returns:

  • (Boolean)

    the current value of can_read_all_group_messages



20
21
22
# File 'lib/tdlib/types/user_type/bot.rb', line 20

def can_read_all_group_messages
  @can_read_all_group_messages
end

#has_main_web_appBoolean

True, if the bot has the main Web App.

Returns:

  • (Boolean)

    the current value of has_main_web_app



20
21
22
# File 'lib/tdlib/types/user_type/bot.rb', line 20

def has_main_web_app
  @has_main_web_app
end

#inline_query_placeholderTD::Types::String

Placeholder for inline queries (displayed on the application input field).

Returns:

  • (TD::Types::String)

    the current value of inline_query_placeholder



20
21
22
# File 'lib/tdlib/types/user_type/bot.rb', line 20

def inline_query_placeholder
  @inline_query_placeholder
end

#is_inlineBoolean

True, if the bot supports inline queries.

Returns:

  • (Boolean)

    the current value of is_inline



20
21
22
# File 'lib/tdlib/types/user_type/bot.rb', line 20

def is_inline
  @is_inline
end

#need_locationBoolean

True, if the location of the user is expected to be sent with every inline query to this bot.

Returns:

  • (Boolean)

    the current value of need_location



20
21
22
# File 'lib/tdlib/types/user_type/bot.rb', line 20

def need_location
  @need_location
end