Class: Telegram::Bot::Types::ChatMemberRestricted

Inherits:
Base
  • Object
show all
Defined in:
sig/telegram/bot/types/chat_member_restricted.rbs

Instance Attribute Summary collapse

Attributes inherited from Base

#attributes

Class Method Summary collapse

Methods included from Compactable

#to_compact_hash, #to_json

Methods included from PatternMatching

#deconstruct_keys

Instance Attribute Details

#can_add_web_page_previewsBoolean (readonly)

Returns the value of attribute can_add_web_page_previews.

Returns:

  • (Boolean)


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_infoBoolean (readonly)

Returns the value of attribute can_change_info.

Returns:

  • (Boolean)


23
24
25
# File 'sig/telegram/bot/types/chat_member_restricted.rbs', line 23

def can_change_info
  @can_change_info
end

#can_edit_tagBoolean (readonly)

Returns the value of attribute can_edit_tag.

Returns:

  • (Boolean)


22
23
24
# File 'sig/telegram/bot/types/chat_member_restricted.rbs', line 22

def can_edit_tag
  @can_edit_tag
end

#can_invite_usersBoolean (readonly)

Returns the value of attribute can_invite_users.

Returns:

  • (Boolean)


24
25
26
# File 'sig/telegram/bot/types/chat_member_restricted.rbs', line 24

def can_invite_users
  @can_invite_users
end

#can_manage_topicsBoolean (readonly)

Returns the value of attribute can_manage_topics.

Returns:

  • (Boolean)


26
27
28
# File 'sig/telegram/bot/types/chat_member_restricted.rbs', line 26

def can_manage_topics
  @can_manage_topics
end

#can_pin_messagesBoolean (readonly)

Returns the value of attribute can_pin_messages.

Returns:

  • (Boolean)


25
26
27
# File 'sig/telegram/bot/types/chat_member_restricted.rbs', line 25

def can_pin_messages
  @can_pin_messages
end

#can_send_audiosBoolean (readonly)

Returns the value of attribute can_send_audios.

Returns:

  • (Boolean)


13
14
15
# File 'sig/telegram/bot/types/chat_member_restricted.rbs', line 13

def can_send_audios
  @can_send_audios
end

#can_send_documentsBoolean (readonly)

Returns the value of attribute can_send_documents.

Returns:

  • (Boolean)


14
15
16
# File 'sig/telegram/bot/types/chat_member_restricted.rbs', line 14

def can_send_documents
  @can_send_documents
end

#can_send_messagesBoolean (readonly)

Returns the value of attribute can_send_messages.

Returns:

  • (Boolean)


12
13
14
# File 'sig/telegram/bot/types/chat_member_restricted.rbs', line 12

def can_send_messages
  @can_send_messages
end

#can_send_other_messagesBoolean (readonly)

Returns the value of attribute can_send_other_messages.

Returns:

  • (Boolean)


20
21
22
# File 'sig/telegram/bot/types/chat_member_restricted.rbs', line 20

def can_send_other_messages
  @can_send_other_messages
end

#can_send_photosBoolean (readonly)

Returns the value of attribute can_send_photos.

Returns:

  • (Boolean)


15
16
17
# File 'sig/telegram/bot/types/chat_member_restricted.rbs', line 15

def can_send_photos
  @can_send_photos
end

#can_send_pollsBoolean (readonly)

Returns the value of attribute can_send_polls.

Returns:

  • (Boolean)


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_notesBoolean (readonly)

Returns the value of attribute can_send_video_notes.

Returns:

  • (Boolean)


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_videosBoolean (readonly)

Returns the value of attribute can_send_videos.

Returns:

  • (Boolean)


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_notesBoolean (readonly)

Returns the value of attribute can_send_voice_notes.

Returns:

  • (Boolean)


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_memberBoolean (readonly)

Returns the value of attribute is_member.

Returns:

  • (Boolean)


11
12
13
# File 'sig/telegram/bot/types/chat_member_restricted.rbs', line 11

def is_member
  @is_member
end

#statusString (readonly)

Returns the value of attribute status.

Returns:

  • (String)


8
9
10
# File 'sig/telegram/bot/types/chat_member_restricted.rbs', line 8

def status
  @status
end

#tagString? (readonly)

Returns the value of attribute tag.

Returns:

  • (String, nil)


9
10
11
# File 'sig/telegram/bot/types/chat_member_restricted.rbs', line 9

def tag
  @tag
end

#until_dateInteger (readonly)

Returns the value of attribute until_date.

Returns:

  • (Integer)


27
28
29
# File 'sig/telegram/bot/types/chat_member_restricted.rbs', line 27

def until_date
  @until_date
end

#userUser (readonly)

Returns the value of attribute user.

Returns:



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

Overloads:

  • .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

    Parameters:

    • status: (String)
    • tag: (String)
    • user: (User)
    • is_member: (Boolean)
    • can_send_messages: (Boolean)
    • can_send_audios: (Boolean)
    • can_send_documents: (Boolean)
    • can_send_photos: (Boolean)
    • can_send_videos: (Boolean)
    • can_send_video_notes: (Boolean)
    • can_send_voice_notes: (Boolean)
    • can_send_polls: (Boolean)
    • can_send_other_messages: (Boolean)
    • can_add_web_page_previews: (Boolean)
    • can_edit_tag: (Boolean)
    • can_change_info: (Boolean)
    • can_invite_users: (Boolean)
    • can_pin_messages: (Boolean)
    • can_manage_topics: (Boolean)
    • until_date: (Integer)

    Returns:

    • (instance)
  • .new(attributes) ⇒ instance

    Parameters:

    • attributes (Hash[Symbol | String, untyped])

    Returns:

    • (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