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

#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



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

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



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

def can_read_all_group_messages
  @can_read_all_group_messages
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



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

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



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

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



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

def need_location
  @need_location
end