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_link_previews ⇒ Boolean
True, if the user may add a link preview to their messages.
-
#can_change_info ⇒ Boolean
True, if the user can change the chat title, photo, and other settings.
-
#can_create_topics ⇒ Boolean
True, if the user can create topics.
-
#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_audios ⇒ Boolean
True, if the user can send music files.
-
#can_send_basic_messages ⇒ Boolean
True, if the user can send text messages, contacts, giveaways, giveaway winners, invoices, locations, and venues.
-
#can_send_documents ⇒ Boolean
True, if the user can send documents.
-
#can_send_other_messages ⇒ Boolean
True, if the user can send animations, games, stickers, and dice and use inline bots.
-
#can_send_photos ⇒ Boolean
True, if the user can send photos.
-
#can_send_polls ⇒ Boolean
True, if the user can send polls.
-
#can_send_video_notes ⇒ Boolean
True, if the user can send video notes.
-
#can_send_videos ⇒ Boolean
True, if the user can send videos.
-
#can_send_voice_notes ⇒ Boolean
True, if the user can send voice notes.
Method Summary
Methods inherited from Base
Instance Attribute Details
#can_add_link_previews ⇒ Boolean
True, if the user may add a link preview to their messages.
20 21 22 |
# File 'lib/tdlib/types/chat_permissions.rb', line 20 def can_add_link_previews @can_add_link_previews end |
#can_change_info ⇒ Boolean
True, if the user can change the chat title, photo, and other settings.
20 21 22 |
# File 'lib/tdlib/types/chat_permissions.rb', line 20 def can_change_info @can_change_info end |
#can_create_topics ⇒ Boolean
True, if the user can create topics.
20 21 22 |
# File 'lib/tdlib/types/chat_permissions.rb', line 20 def can_create_topics @can_create_topics end |
#can_invite_users ⇒ Boolean
True, if the user can invite new users to the chat.
20 21 22 |
# File 'lib/tdlib/types/chat_permissions.rb', line 20 def can_invite_users @can_invite_users end |
#can_pin_messages ⇒ Boolean
True, if the user can pin messages.
20 21 22 |
# File 'lib/tdlib/types/chat_permissions.rb', line 20 def @can_pin_messages end |
#can_send_audios ⇒ Boolean
True, if the user can send music files.
20 21 22 |
# File 'lib/tdlib/types/chat_permissions.rb', line 20 def can_send_audios @can_send_audios end |
#can_send_basic_messages ⇒ Boolean
True, if the user can send text messages, contacts, giveaways, giveaway winners, invoices, locations, and venues.
20 21 22 |
# File 'lib/tdlib/types/chat_permissions.rb', line 20 def @can_send_basic_messages end |
#can_send_documents ⇒ Boolean
True, if the user can send documents.
20 21 22 |
# File 'lib/tdlib/types/chat_permissions.rb', line 20 def can_send_documents @can_send_documents end |
#can_send_other_messages ⇒ Boolean
True, if the user can send animations, games, stickers, and dice and use inline bots.
20 21 22 |
# File 'lib/tdlib/types/chat_permissions.rb', line 20 def @can_send_other_messages end |
#can_send_photos ⇒ Boolean
True, if the user can send photos.
20 21 22 |
# File 'lib/tdlib/types/chat_permissions.rb', line 20 def can_send_photos @can_send_photos end |
#can_send_polls ⇒ Boolean
True, if the user can send polls.
20 21 22 |
# File 'lib/tdlib/types/chat_permissions.rb', line 20 def can_send_polls @can_send_polls end |
#can_send_video_notes ⇒ Boolean
True, if the user can send video notes.
20 21 22 |
# File 'lib/tdlib/types/chat_permissions.rb', line 20 def can_send_video_notes @can_send_video_notes end |
#can_send_videos ⇒ Boolean
True, if the user can send videos.
20 21 22 |
# File 'lib/tdlib/types/chat_permissions.rb', line 20 def can_send_videos @can_send_videos end |
#can_send_voice_notes ⇒ Boolean
True, if the user can send voice notes.
20 21 22 |
# File 'lib/tdlib/types/chat_permissions.rb', line 20 def can_send_voice_notes @can_send_voice_notes end |