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

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

Overview

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#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



11
12
13
# File 'lib/tdlib/types/user_type/bot.rb', line 11

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



11
12
13
# File 'lib/tdlib/types/user_type/bot.rb', line 11

def can_read_all_group_messages
  @can_read_all_group_messages
end

#inline_query_placeholderString

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

Returns:

  • (String)

    the current value of inline_query_placeholder



11
12
13
# File 'lib/tdlib/types/user_type/bot.rb', line 11

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



11
12
13
# File 'lib/tdlib/types/user_type/bot.rb', line 11

def is_inline
  @is_inline
end

#need_locationBoolean

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

Returns:

  • (Boolean)

    the current value of need_location



11
12
13
# File 'lib/tdlib/types/user_type/bot.rb', line 11

def need_location
  @need_location
end