Class: Telegram::Bot::Types::ChatPermissions

Inherits:
Base
  • Object
show all
Defined in:
sig/telegram/bot/types/chat_permissions.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, nil)


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

Returns the value of attribute can_change_info.

Returns:

  • (Boolean, nil)


19
20
21
# File 'sig/telegram/bot/types/chat_permissions.rbs', line 19

def can_change_info
  @can_change_info
end

#can_edit_tagBoolean? (readonly)

Returns the value of attribute can_edit_tag.

Returns:

  • (Boolean, nil)


18
19
20
# File 'sig/telegram/bot/types/chat_permissions.rbs', line 18

def can_edit_tag
  @can_edit_tag
end

#can_invite_usersBoolean? (readonly)

Returns the value of attribute can_invite_users.

Returns:

  • (Boolean, nil)


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

def can_invite_users
  @can_invite_users
end

#can_manage_topicsBoolean? (readonly)

Returns the value of attribute can_manage_topics.

Returns:

  • (Boolean, nil)


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

def can_manage_topics
  @can_manage_topics
end

#can_pin_messagesBoolean? (readonly)

Returns the value of attribute can_pin_messages.

Returns:

  • (Boolean, nil)


21
22
23
# File 'sig/telegram/bot/types/chat_permissions.rbs', line 21

def can_pin_messages
  @can_pin_messages
end

#can_send_audiosBoolean? (readonly)

Returns the value of attribute can_send_audios.

Returns:

  • (Boolean, nil)


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

def can_send_audios
  @can_send_audios
end

#can_send_documentsBoolean? (readonly)

Returns the value of attribute can_send_documents.

Returns:

  • (Boolean, nil)


10
11
12
# File 'sig/telegram/bot/types/chat_permissions.rbs', line 10

def can_send_documents
  @can_send_documents
end

#can_send_messagesBoolean? (readonly)

Returns the value of attribute can_send_messages.

Returns:

  • (Boolean, nil)


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

def can_send_messages
  @can_send_messages
end

#can_send_other_messagesBoolean? (readonly)

Returns the value of attribute can_send_other_messages.

Returns:

  • (Boolean, nil)


16
17
18
# File 'sig/telegram/bot/types/chat_permissions.rbs', line 16

def can_send_other_messages
  @can_send_other_messages
end

#can_send_photosBoolean? (readonly)

Returns the value of attribute can_send_photos.

Returns:

  • (Boolean, nil)


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

def can_send_photos
  @can_send_photos
end

#can_send_pollsBoolean? (readonly)

Returns the value of attribute can_send_polls.

Returns:

  • (Boolean, nil)


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

def can_send_polls
  @can_send_polls
end

#can_send_video_notesBoolean? (readonly)

Returns the value of attribute can_send_video_notes.

Returns:

  • (Boolean, nil)


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

Returns the value of attribute can_send_videos.

Returns:

  • (Boolean, nil)


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

def can_send_videos
  @can_send_videos
end

#can_send_voice_notesBoolean? (readonly)

Returns the value of attribute can_send_voice_notes.

Returns:

  • (Boolean, nil)


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

Overloads:

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

    Parameters:

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

    Returns:

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

    Parameters:

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

    Returns:

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