Class: Telegram::Bot::Types::ChatMemberRestricted
- Defined in:
- sig/telegram/bot/types/chat_member_restricted.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.
-
#is_member ⇒ Boolean
readonly
Returns the value of attribute is_member.
-
#status ⇒ String
readonly
Returns the value of attribute status.
-
#tag ⇒ String?
readonly
Returns the value of attribute tag.
-
#until_date ⇒ Integer
readonly
Returns the value of attribute until_date.
-
#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_add_web_page_previews ⇒ Boolean (readonly)
Returns the value of attribute can_add_web_page_previews.
21 22 23 |
# File 'sig/telegram/bot/types/chat_member_restricted.rbs', line 21 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.
23 24 25 |
# File 'sig/telegram/bot/types/chat_member_restricted.rbs', line 23 def can_change_info @can_change_info end |
#can_edit_tag ⇒ Boolean (readonly)
Returns the value of attribute can_edit_tag.
22 23 24 |
# File 'sig/telegram/bot/types/chat_member_restricted.rbs', line 22 def can_edit_tag @can_edit_tag end |
#can_invite_users ⇒ Boolean (readonly)
Returns the value of attribute can_invite_users.
24 25 26 |
# File 'sig/telegram/bot/types/chat_member_restricted.rbs', line 24 def can_invite_users @can_invite_users end |
#can_manage_topics ⇒ Boolean (readonly)
Returns the value of attribute can_manage_topics.
26 27 28 |
# File 'sig/telegram/bot/types/chat_member_restricted.rbs', line 26 def can_manage_topics @can_manage_topics end |
#can_pin_messages ⇒ Boolean (readonly)
Returns the value of attribute can_pin_messages.
25 26 27 |
# File 'sig/telegram/bot/types/chat_member_restricted.rbs', line 25 def @can_pin_messages end |
#can_send_audios ⇒ Boolean (readonly)
Returns the value of attribute can_send_audios.
13 14 15 |
# File 'sig/telegram/bot/types/chat_member_restricted.rbs', line 13 def can_send_audios @can_send_audios end |
#can_send_documents ⇒ Boolean (readonly)
Returns the value of attribute can_send_documents.
14 15 16 |
# File 'sig/telegram/bot/types/chat_member_restricted.rbs', line 14 def can_send_documents @can_send_documents end |
#can_send_messages ⇒ Boolean (readonly)
Returns the value of attribute can_send_messages.
12 13 14 |
# File 'sig/telegram/bot/types/chat_member_restricted.rbs', line 12 def @can_send_messages end |
#can_send_other_messages ⇒ Boolean (readonly)
Returns the value of attribute can_send_other_messages.
20 21 22 |
# File 'sig/telegram/bot/types/chat_member_restricted.rbs', line 20 def @can_send_other_messages end |
#can_send_photos ⇒ Boolean (readonly)
Returns the value of attribute can_send_photos.
15 16 17 |
# File 'sig/telegram/bot/types/chat_member_restricted.rbs', line 15 def can_send_photos @can_send_photos end |
#can_send_polls ⇒ Boolean (readonly)
Returns the value of attribute can_send_polls.
19 20 21 |
# File 'sig/telegram/bot/types/chat_member_restricted.rbs', line 19 def can_send_polls @can_send_polls end |
#can_send_video_notes ⇒ Boolean (readonly)
Returns the value of attribute can_send_video_notes.
17 18 19 |
# File 'sig/telegram/bot/types/chat_member_restricted.rbs', line 17 def can_send_video_notes @can_send_video_notes end |
#can_send_videos ⇒ Boolean (readonly)
Returns the value of attribute can_send_videos.
16 17 18 |
# File 'sig/telegram/bot/types/chat_member_restricted.rbs', line 16 def can_send_videos @can_send_videos end |
#can_send_voice_notes ⇒ Boolean (readonly)
Returns the value of attribute can_send_voice_notes.
18 19 20 |
# File 'sig/telegram/bot/types/chat_member_restricted.rbs', line 18 def can_send_voice_notes @can_send_voice_notes end |
#is_member ⇒ Boolean (readonly)
Returns the value of attribute is_member.
11 12 13 |
# File 'sig/telegram/bot/types/chat_member_restricted.rbs', line 11 def is_member @is_member end |
#status ⇒ String (readonly)
Returns the value of attribute status.
8 9 10 |
# File 'sig/telegram/bot/types/chat_member_restricted.rbs', line 8 def status @status end |
#tag ⇒ String? (readonly)
Returns the value of attribute tag.
9 10 11 |
# File 'sig/telegram/bot/types/chat_member_restricted.rbs', line 9 def tag @tag end |
#until_date ⇒ Integer (readonly)
Returns the value of attribute until_date.
27 28 29 |
# File 'sig/telegram/bot/types/chat_member_restricted.rbs', line 27 def until_date @until_date end |
#user ⇒ User (readonly)
Returns the value of attribute user.
10 11 12 |
# File 'sig/telegram/bot/types/chat_member_restricted.rbs', line 10 def user @user end |
Class Method Details
.new(status:, tag:, user:, is_member:, 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:, until_date:) ⇒ instance .new(attributes) ⇒ instance
6 7 |
# File 'sig/telegram/bot/types/chat_member_restricted.rbs', line 6
def self.new: (?status: String, ?tag: String, user: User, is_member: bool, 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, until_date: Integer) -> instance
| (?Hash[Symbol | String, untyped] attributes) -> instance
|