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