Class: TD::Types::ChatPermissions
- 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
-
#can_add_web_page_previews ⇒ Boolean
True, if the user may add a web page preview to their messages.
-
#can_change_info ⇒ Boolean
True, if the user can change the chat title, photo, and other settings.
-
#can_invite_users ⇒ Boolean
True, if the user can invite new users to the chat.
-
#can_pin_messages ⇒ Boolean
True, if the user can pin messages.
-
#can_send_media_messages ⇒ Boolean
True, if the user can send audio files, documents, photos, videos, video notes, and voice notes.
-
#can_send_messages ⇒ Boolean
True, if the user can send text messages, contacts, locations, and venues.
-
#can_send_other_messages ⇒ Boolean
True, if the user can send animations, games, stickers, and dice and use inline bots.
-
#can_send_polls ⇒ Boolean
True, if the user can send polls.
Method Summary
Methods inherited from Base
Instance Attribute Details
#can_add_web_page_previews ⇒ Boolean
True, if the user may add a web page preview to their messages. Implies can_send_messages permissions.
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_info ⇒ Boolean
True, if the user can change the chat title, photo, and other settings.
18 19 20 |
# File 'lib/tdlib/types/chat_permissions.rb', line 18 def can_change_info @can_change_info end |
#can_invite_users ⇒ Boolean
True, if the user can invite new users to the chat.
18 19 20 |
# File 'lib/tdlib/types/chat_permissions.rb', line 18 def can_invite_users @can_invite_users end |
#can_pin_messages ⇒ Boolean
True, if the user can pin messages.
18 19 20 |
# File 'lib/tdlib/types/chat_permissions.rb', line 18 def @can_pin_messages end |
#can_send_media_messages ⇒ Boolean
True, if the user can send audio files, documents, photos, videos, video notes, and voice notes. Implies can_send_messages permissions.
18 19 20 |
# File 'lib/tdlib/types/chat_permissions.rb', line 18 def @can_send_media_messages end |
#can_send_messages ⇒ Boolean
True, if the user can send text messages, contacts, locations, and venues.
18 19 20 |
# File 'lib/tdlib/types/chat_permissions.rb', line 18 def @can_send_messages end |
#can_send_other_messages ⇒ Boolean
True, if the user can send animations, games, stickers, and dice and use inline bots. Implies can_send_messages permissions.
18 19 20 |
# File 'lib/tdlib/types/chat_permissions.rb', line 18 def @can_send_other_messages end |
#can_send_polls ⇒ Boolean
True, if the user can send polls. Implies can_send_messages permissions.
18 19 20 |
# File 'lib/tdlib/types/chat_permissions.rb', line 18 def can_send_polls @can_send_polls end |