Class: TD::Types::ChatPermissions

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

Overview

Describes actions that a user is allowed to take in a chat.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#can_add_web_page_previewsBoolean

True, if the user may add a web page preview to their messages. Implies can_send_messages permissions.

Returns:

  • (Boolean)

    the current value of can_add_web_page_previews



18
19
20
# File 'lib/tdlib/types/chat_permissions.rb', line 18

def can_add_web_page_previews
  @can_add_web_page_previews
end

#can_change_infoBoolean

True, if the user can change the chat title, photo, and other settings.

Returns:

  • (Boolean)

    the current value of can_change_info



18
19
20
# File 'lib/tdlib/types/chat_permissions.rb', line 18

def can_change_info
  @can_change_info
end

#can_invite_usersBoolean

True, if the user can invite new users to the chat.

Returns:

  • (Boolean)

    the current value of can_invite_users



18
19
20
# File 'lib/tdlib/types/chat_permissions.rb', line 18

def can_invite_users
  @can_invite_users
end

#can_pin_messagesBoolean

True, if the user can pin messages.

Returns:

  • (Boolean)

    the current value of can_pin_messages



18
19
20
# File 'lib/tdlib/types/chat_permissions.rb', line 18

def can_pin_messages
  @can_pin_messages
end

#can_send_media_messagesBoolean

True, if the user can send audio files, documents, photos, videos, video notes, and voice notes. Implies can_send_messages permissions.

Returns:

  • (Boolean)

    the current value of can_send_media_messages



18
19
20
# File 'lib/tdlib/types/chat_permissions.rb', line 18

def can_send_media_messages
  @can_send_media_messages
end

#can_send_messagesBoolean

True, if the user can send text messages, contacts, locations, and venues.

Returns:

  • (Boolean)

    the current value of can_send_messages



18
19
20
# File 'lib/tdlib/types/chat_permissions.rb', line 18

def can_send_messages
  @can_send_messages
end

#can_send_other_messagesBoolean

True, if the user can send animations, games, stickers, and dice and use inline bots. Implies can_send_messages permissions.

Returns:

  • (Boolean)

    the current value of can_send_other_messages



18
19
20
# File 'lib/tdlib/types/chat_permissions.rb', line 18

def can_send_other_messages
  @can_send_other_messages
end

#can_send_pollsBoolean

True, if the user can send polls. Implies can_send_messages permissions.

Returns:

  • (Boolean)

    the current value of can_send_polls



18
19
20
# File 'lib/tdlib/types/chat_permissions.rb', line 18

def can_send_polls
  @can_send_polls
end