Class: Telegram::Bot::Types::ChatPermissions
- Defined in:
- sig/telegram/bot/types/chat_permissions.rbs
Instance Attribute Summary collapse
-
#can_add_web_page_previews ⇒ Boolean?
readonly
Returns the value of attribute can_add_web_page_previews.
-
#can_change_info ⇒ Boolean?
readonly
Returns the value of attribute can_change_info.
-
#can_edit_tag ⇒ Boolean?
readonly
Returns the value of attribute can_edit_tag.
-
#can_invite_users ⇒ Boolean?
readonly
Returns the value of attribute can_invite_users.
-
#can_manage_topics ⇒ Boolean?
readonly
Returns the value of attribute can_manage_topics.
-
#can_pin_messages ⇒ Boolean?
readonly
Returns the value of attribute can_pin_messages.
-
#can_send_audios ⇒ Boolean?
readonly
Returns the value of attribute can_send_audios.
-
#can_send_documents ⇒ Boolean?
readonly
Returns the value of attribute can_send_documents.
-
#can_send_messages ⇒ Boolean?
readonly
Returns the value of attribute can_send_messages.
-
#can_send_other_messages ⇒ Boolean?
readonly
Returns the value of attribute can_send_other_messages.
-
#can_send_photos ⇒ Boolean?
readonly
Returns the value of attribute can_send_photos.
-
#can_send_polls ⇒ Boolean?
readonly
Returns the value of attribute can_send_polls.
-
#can_send_video_notes ⇒ Boolean?
readonly
Returns the value of attribute can_send_video_notes.
-
#can_send_videos ⇒ Boolean?
readonly
Returns the value of attribute can_send_videos.
-
#can_send_voice_notes ⇒ Boolean?
readonly
Returns the value of attribute can_send_voice_notes.
Attributes inherited from Base
Class Method Summary collapse
Methods included from Compactable
Methods included from PatternMatching
Instance Attribute Details
#can_add_web_page_previews ⇒ Boolean? (readonly)
Returns the value of attribute can_add_web_page_previews.
17 18 19 |
# File 'sig/telegram/bot/types/chat_permissions.rbs', line 17 def can_add_web_page_previews @can_add_web_page_previews end |
#can_change_info ⇒ Boolean? (readonly)
Returns the value of attribute can_change_info.
19 20 21 |
# File 'sig/telegram/bot/types/chat_permissions.rbs', line 19 def can_change_info @can_change_info end |
#can_edit_tag ⇒ Boolean? (readonly)
Returns the value of attribute can_edit_tag.
18 19 20 |
# File 'sig/telegram/bot/types/chat_permissions.rbs', line 18 def can_edit_tag @can_edit_tag end |
#can_invite_users ⇒ Boolean? (readonly)
Returns the value of attribute can_invite_users.
20 21 22 |
# File 'sig/telegram/bot/types/chat_permissions.rbs', line 20 def can_invite_users @can_invite_users end |
#can_manage_topics ⇒ Boolean? (readonly)
Returns the value of attribute can_manage_topics.
22 23 24 |
# File 'sig/telegram/bot/types/chat_permissions.rbs', line 22 def can_manage_topics @can_manage_topics end |
#can_pin_messages ⇒ Boolean? (readonly)
Returns the value of attribute can_pin_messages.
21 22 23 |
# File 'sig/telegram/bot/types/chat_permissions.rbs', line 21 def @can_pin_messages end |
#can_send_audios ⇒ Boolean? (readonly)
Returns the value of attribute can_send_audios.
9 10 11 |
# File 'sig/telegram/bot/types/chat_permissions.rbs', line 9 def can_send_audios @can_send_audios end |
#can_send_documents ⇒ Boolean? (readonly)
Returns the value of attribute can_send_documents.
10 11 12 |
# File 'sig/telegram/bot/types/chat_permissions.rbs', line 10 def can_send_documents @can_send_documents end |
#can_send_messages ⇒ Boolean? (readonly)
Returns the value of attribute can_send_messages.
8 9 10 |
# File 'sig/telegram/bot/types/chat_permissions.rbs', line 8 def @can_send_messages end |
#can_send_other_messages ⇒ Boolean? (readonly)
Returns the value of attribute can_send_other_messages.
16 17 18 |
# File 'sig/telegram/bot/types/chat_permissions.rbs', line 16 def @can_send_other_messages end |
#can_send_photos ⇒ Boolean? (readonly)
Returns the value of attribute can_send_photos.
11 12 13 |
# File 'sig/telegram/bot/types/chat_permissions.rbs', line 11 def can_send_photos @can_send_photos end |
#can_send_polls ⇒ Boolean? (readonly)
Returns the value of attribute can_send_polls.
15 16 17 |
# File 'sig/telegram/bot/types/chat_permissions.rbs', line 15 def can_send_polls @can_send_polls end |
#can_send_video_notes ⇒ Boolean? (readonly)
Returns the value of attribute can_send_video_notes.
13 14 15 |
# File 'sig/telegram/bot/types/chat_permissions.rbs', line 13 def can_send_video_notes @can_send_video_notes end |
#can_send_videos ⇒ Boolean? (readonly)
Returns the value of attribute can_send_videos.
12 13 14 |
# File 'sig/telegram/bot/types/chat_permissions.rbs', line 12 def can_send_videos @can_send_videos end |
#can_send_voice_notes ⇒ Boolean? (readonly)
Returns the value of attribute can_send_voice_notes.
14 15 16 |
# File 'sig/telegram/bot/types/chat_permissions.rbs', line 14 def can_send_voice_notes @can_send_voice_notes end |
Class Method Details
.new(can_send_messages:, can_send_audios:, can_send_documents:, can_send_photos:, can_send_videos:, can_send_video_notes:, can_send_voice_notes:, can_send_polls:, can_send_other_messages:, can_add_web_page_previews:, can_edit_tag:, can_change_info:, can_invite_users:, can_pin_messages:, can_manage_topics:) ⇒ instance .new(attributes) ⇒ instance
6 7 |
# File 'sig/telegram/bot/types/chat_permissions.rbs', line 6
def self.new: (?can_send_messages: bool, ?can_send_audios: bool, ?can_send_documents: bool, ?can_send_photos: bool, ?can_send_videos: bool, ?can_send_video_notes: bool, ?can_send_voice_notes: bool, ?can_send_polls: bool, ?can_send_other_messages: bool, ?can_add_web_page_previews: bool, ?can_edit_tag: bool, ?can_change_info: bool, ?can_invite_users: bool, ?can_pin_messages: bool, ?can_manage_topics: bool) -> instance
| (?Hash[Symbol | String, untyped] attributes) -> instance
|