Class: Telegram::Bot::Types::ChatAdministratorRights
- Defined in:
- sig/telegram/bot/types/chat_administrator_rights.rbs
Instance Attribute Summary collapse
-
#can_change_info ⇒ Boolean
readonly
Returns the value of attribute can_change_info.
-
#can_delete_messages ⇒ Boolean
readonly
Returns the value of attribute can_delete_messages.
-
#can_delete_stories ⇒ Boolean
readonly
Returns the value of attribute can_delete_stories.
-
#can_edit_messages ⇒ Boolean?
readonly
Returns the value of attribute can_edit_messages.
-
#can_edit_stories ⇒ Boolean
readonly
Returns the value of attribute can_edit_stories.
-
#can_invite_users ⇒ Boolean
readonly
Returns the value of attribute can_invite_users.
-
#can_manage_chat ⇒ Boolean
readonly
Returns the value of attribute can_manage_chat.
-
#can_manage_direct_messages ⇒ Boolean?
readonly
Returns the value of attribute can_manage_direct_messages.
-
#can_manage_tags ⇒ Boolean?
readonly
Returns the value of attribute can_manage_tags.
-
#can_manage_topics ⇒ Boolean?
readonly
Returns the value of attribute can_manage_topics.
-
#can_manage_video_chats ⇒ Boolean
readonly
Returns the value of attribute can_manage_video_chats.
-
#can_pin_messages ⇒ Boolean?
readonly
Returns the value of attribute can_pin_messages.
-
#can_post_messages ⇒ Boolean?
readonly
Returns the value of attribute can_post_messages.
-
#can_post_stories ⇒ Boolean
readonly
Returns the value of attribute can_post_stories.
-
#can_promote_members ⇒ Boolean
readonly
Returns the value of attribute can_promote_members.
-
#can_restrict_members ⇒ Boolean
readonly
Returns the value of attribute can_restrict_members.
-
#is_anonymous ⇒ Boolean
readonly
Returns the value of attribute is_anonymous.
Attributes inherited from Base
Class Method Summary collapse
Methods included from Compactable
Methods included from PatternMatching
Instance Attribute Details
#can_change_info ⇒ Boolean (readonly)
Returns the value of attribute can_change_info.
14 15 16 |
# File 'sig/telegram/bot/types/chat_administrator_rights.rbs', line 14 def can_change_info @can_change_info end |
#can_delete_messages ⇒ Boolean (readonly)
Returns the value of attribute can_delete_messages.
10 11 12 |
# File 'sig/telegram/bot/types/chat_administrator_rights.rbs', line 10 def @can_delete_messages end |
#can_delete_stories ⇒ Boolean (readonly)
Returns the value of attribute can_delete_stories.
18 19 20 |
# File 'sig/telegram/bot/types/chat_administrator_rights.rbs', line 18 def can_delete_stories @can_delete_stories end |
#can_edit_messages ⇒ Boolean? (readonly)
Returns the value of attribute can_edit_messages.
20 21 22 |
# File 'sig/telegram/bot/types/chat_administrator_rights.rbs', line 20 def @can_edit_messages end |
#can_edit_stories ⇒ Boolean (readonly)
Returns the value of attribute can_edit_stories.
17 18 19 |
# File 'sig/telegram/bot/types/chat_administrator_rights.rbs', line 17 def can_edit_stories @can_edit_stories end |
#can_invite_users ⇒ Boolean (readonly)
Returns the value of attribute can_invite_users.
15 16 17 |
# File 'sig/telegram/bot/types/chat_administrator_rights.rbs', line 15 def can_invite_users @can_invite_users end |
#can_manage_chat ⇒ Boolean (readonly)
Returns the value of attribute can_manage_chat.
9 10 11 |
# File 'sig/telegram/bot/types/chat_administrator_rights.rbs', line 9 def can_manage_chat @can_manage_chat end |
#can_manage_direct_messages ⇒ Boolean? (readonly)
Returns the value of attribute can_manage_direct_messages.
23 24 25 |
# File 'sig/telegram/bot/types/chat_administrator_rights.rbs', line 23 def @can_manage_direct_messages end |
#can_manage_tags ⇒ Boolean? (readonly)
Returns the value of attribute can_manage_tags.
24 25 26 |
# File 'sig/telegram/bot/types/chat_administrator_rights.rbs', line 24 def @can_manage_tags end |
#can_manage_topics ⇒ Boolean? (readonly)
Returns the value of attribute can_manage_topics.
22 23 24 |
# File 'sig/telegram/bot/types/chat_administrator_rights.rbs', line 22 def can_manage_topics @can_manage_topics end |
#can_manage_video_chats ⇒ Boolean (readonly)
Returns the value of attribute can_manage_video_chats.
11 12 13 |
# File 'sig/telegram/bot/types/chat_administrator_rights.rbs', line 11 def can_manage_video_chats @can_manage_video_chats end |
#can_pin_messages ⇒ Boolean? (readonly)
Returns the value of attribute can_pin_messages.
21 22 23 |
# File 'sig/telegram/bot/types/chat_administrator_rights.rbs', line 21 def @can_pin_messages end |
#can_post_messages ⇒ Boolean? (readonly)
Returns the value of attribute can_post_messages.
19 20 21 |
# File 'sig/telegram/bot/types/chat_administrator_rights.rbs', line 19 def @can_post_messages end |
#can_post_stories ⇒ Boolean (readonly)
Returns the value of attribute can_post_stories.
16 17 18 |
# File 'sig/telegram/bot/types/chat_administrator_rights.rbs', line 16 def can_post_stories @can_post_stories end |
#can_promote_members ⇒ Boolean (readonly)
Returns the value of attribute can_promote_members.
13 14 15 |
# File 'sig/telegram/bot/types/chat_administrator_rights.rbs', line 13 def can_promote_members @can_promote_members end |
#can_restrict_members ⇒ Boolean (readonly)
Returns the value of attribute can_restrict_members.
12 13 14 |
# File 'sig/telegram/bot/types/chat_administrator_rights.rbs', line 12 def can_restrict_members @can_restrict_members end |
#is_anonymous ⇒ Boolean (readonly)
Returns the value of attribute is_anonymous.
8 9 10 |
# File 'sig/telegram/bot/types/chat_administrator_rights.rbs', line 8 def is_anonymous @is_anonymous end |
Class Method Details
.new(is_anonymous:, can_manage_chat:, can_delete_messages:, can_manage_video_chats:, can_restrict_members:, can_promote_members:, can_change_info:, can_invite_users:, can_post_stories:, can_edit_stories:, can_delete_stories:, can_post_messages:, can_edit_messages:, can_pin_messages:, can_manage_topics:, can_manage_direct_messages:, can_manage_tags:) ⇒ instance .new(attributes) ⇒ instance
6 7 |
# File 'sig/telegram/bot/types/chat_administrator_rights.rbs', line 6
def self.new: (is_anonymous: bool, can_manage_chat: bool, can_delete_messages: bool, can_manage_video_chats: bool, can_restrict_members: bool, can_promote_members: bool, can_change_info: bool, can_invite_users: bool, can_post_stories: bool, can_edit_stories: bool, can_delete_stories: bool, ?can_post_messages: bool, ?can_edit_messages: bool, ?can_pin_messages: bool, ?can_manage_topics: bool, ?can_manage_direct_messages: bool, ?can_manage_tags: bool) -> instance
| (?Hash[Symbol | String, untyped] attributes) -> instance
|