Class: Telegram::Bot::Types::ChatFullInfo

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

#accent_color_idInteger (readonly)

Returns the value of attribute accent_color_id.

Returns:

  • (Integer)


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

def accent_color_id
  @accent_color_id
end

#accepted_gift_typesAcceptedGiftTypes (readonly)

Returns the value of attribute accepted_gift_types.

Returns:



41
42
43
# File 'sig/telegram/bot/types/chat_full_info.rbs', line 41

def accepted_gift_types
  @accepted_gift_types
end

#active_usernamesArray[String]? (readonly)

Returns the value of attribute active_usernames.

Returns:

  • (Array[String], nil)


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

def active_usernames
  @active_usernames
end

#available_reactionsArray[reaction_type]? (readonly)

Returns the value of attribute available_reactions.

Returns:

  • (Array[reaction_type], nil)


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

def available_reactions
  @available_reactions
end

#background_custom_emoji_idString? (readonly)

Returns the value of attribute background_custom_emoji_id.

Returns:

  • (String, nil)


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

def background_custom_emoji_id
  @background_custom_emoji_id
end

#bioString? (readonly)

Returns the value of attribute bio.

Returns:

  • (String, nil)


32
33
34
# File 'sig/telegram/bot/types/chat_full_info.rbs', line 32

def bio
  @bio
end

#birthdateBirthdate? (readonly)

Returns the value of attribute birthdate.

Returns:



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

def birthdate
  @birthdate
end

#business_introBusinessIntro? (readonly)

Returns the value of attribute business_intro.

Returns:



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

def business_intro
  @business_intro
end

#business_locationBusinessLocation? (readonly)

Returns the value of attribute business_location.

Returns:



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

def business_location
  @business_location
end

#business_opening_hoursBusinessOpeningHours? (readonly)

Returns the value of attribute business_opening_hours.

Returns:



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

def business_opening_hours
  @business_opening_hours
end

#can_send_paid_mediatrue? (readonly)

Returns the value of attribute can_send_paid_media.

Returns:

  • (true, nil)


42
43
44
# File 'sig/telegram/bot/types/chat_full_info.rbs', line 42

def can_send_paid_media
  @can_send_paid_media
end

#can_set_sticker_settrue? (readonly)

Returns the value of attribute can_set_sticker_set.

Returns:

  • (true, nil)


51
52
53
# File 'sig/telegram/bot/types/chat_full_info.rbs', line 51

def can_set_sticker_set
  @can_set_sticker_set
end

#custom_emoji_sticker_set_nameString? (readonly)

Returns the value of attribute custom_emoji_sticker_set_name.

Returns:

  • (String, nil)


52
53
54
# File 'sig/telegram/bot/types/chat_full_info.rbs', line 52

def custom_emoji_sticker_set_name
  @custom_emoji_sticker_set_name
end

#descriptionString? (readonly)

Returns the value of attribute description.

Returns:

  • (String, nil)


37
38
39
# File 'sig/telegram/bot/types/chat_full_info.rbs', line 37

def description
  @description
end

#emoji_status_custom_emoji_idString? (readonly)

Returns the value of attribute emoji_status_custom_emoji_id.

Returns:

  • (String, nil)


30
31
32
# File 'sig/telegram/bot/types/chat_full_info.rbs', line 30

def emoji_status_custom_emoji_id
  @emoji_status_custom_emoji_id
end

#emoji_status_expiration_dateInteger? (readonly)

Returns the value of attribute emoji_status_expiration_date.

Returns:

  • (Integer, nil)


31
32
33
# File 'sig/telegram/bot/types/chat_full_info.rbs', line 31

def emoji_status_expiration_date
  @emoji_status_expiration_date
end

#first_nameString? (readonly)

Returns the value of attribute first_name.

Returns:

  • (String, nil)


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

def first_name
  @first_name
end

#first_profile_audioAudio? (readonly)

Returns the value of attribute first_profile_audio.

Returns:



56
57
58
# File 'sig/telegram/bot/types/chat_full_info.rbs', line 56

def first_profile_audio
  @first_profile_audio
end

#has_aggressive_anti_spam_enabledtrue? (readonly)

Returns the value of attribute has_aggressive_anti_spam_enabled.

Returns:

  • (true, nil)


46
47
48
# File 'sig/telegram/bot/types/chat_full_info.rbs', line 46

def has_aggressive_anti_spam_enabled
  @has_aggressive_anti_spam_enabled
end

#has_hidden_memberstrue? (readonly)

Returns the value of attribute has_hidden_members.

Returns:

  • (true, nil)


47
48
49
# File 'sig/telegram/bot/types/chat_full_info.rbs', line 47

def has_hidden_members
  @has_hidden_members
end

#has_private_forwardstrue? (readonly)

Returns the value of attribute has_private_forwards.

Returns:

  • (true, nil)


33
34
35
# File 'sig/telegram/bot/types/chat_full_info.rbs', line 33

def has_private_forwards
  @has_private_forwards
end

#has_protected_contenttrue? (readonly)

Returns the value of attribute has_protected_content.

Returns:

  • (true, nil)


48
49
50
# File 'sig/telegram/bot/types/chat_full_info.rbs', line 48

def has_protected_content
  @has_protected_content
end

#has_restricted_voice_and_video_messagestrue? (readonly)

Returns the value of attribute has_restricted_voice_and_video_messages.

Returns:

  • (true, nil)


34
35
36
# File 'sig/telegram/bot/types/chat_full_info.rbs', line 34

def has_restricted_voice_and_video_messages
  @has_restricted_voice_and_video_messages
end

#has_visible_historytrue? (readonly)

Returns the value of attribute has_visible_history.

Returns:

  • (true, nil)


49
50
51
# File 'sig/telegram/bot/types/chat_full_info.rbs', line 49

def has_visible_history
  @has_visible_history
end

#idInteger (readonly)

Returns the value of attribute id.

Returns:

  • (Integer)


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

def id
  @id
end

Returns the value of attribute invite_link.

Returns:

  • (String, nil)


38
39
40
# File 'sig/telegram/bot/types/chat_full_info.rbs', line 38

def invite_link
  @invite_link
end

#is_direct_messagestrue? (readonly)

Returns the value of attribute is_direct_messages.

Returns:

  • (true, nil)


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

def is_direct_messages
  @is_direct_messages
end

#is_forumtrue? (readonly)

Returns the value of attribute is_forum.

Returns:

  • (true, nil)


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

def is_forum
  @is_forum
end

#join_by_requesttrue? (readonly)

Returns the value of attribute join_by_request.

Returns:

  • (true, nil)


36
37
38
# File 'sig/telegram/bot/types/chat_full_info.rbs', line 36

def join_by_request
  @join_by_request
end

#join_to_send_messagestrue? (readonly)

Returns the value of attribute join_to_send_messages.

Returns:

  • (true, nil)


35
36
37
# File 'sig/telegram/bot/types/chat_full_info.rbs', line 35

def join_to_send_messages
  @join_to_send_messages
end

#last_nameString? (readonly)

Returns the value of attribute last_name.

Returns:

  • (String, nil)


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

def last_name
  @last_name
end

#linked_chat_idInteger? (readonly)

Returns the value of attribute linked_chat_id.

Returns:

  • (Integer, nil)


53
54
55
# File 'sig/telegram/bot/types/chat_full_info.rbs', line 53

def linked_chat_id
  @linked_chat_id
end

#locationChatLocation? (readonly)

Returns the value of attribute location.

Returns:



54
55
56
# File 'sig/telegram/bot/types/chat_full_info.rbs', line 54

def location
  @location
end

#max_reaction_countInteger (readonly)

Returns the value of attribute max_reaction_count.

Returns:

  • (Integer)


17
18
19
# File 'sig/telegram/bot/types/chat_full_info.rbs', line 17

def max_reaction_count
  @max_reaction_count
end

#message_auto_delete_timeInteger? (readonly)

Returns the value of attribute message_auto_delete_time.

Returns:

  • (Integer, nil)


45
46
47
# File 'sig/telegram/bot/types/chat_full_info.rbs', line 45

def message_auto_delete_time
  @message_auto_delete_time
end

Returns the value of attribute paid_message_star_count.

Returns:

  • (Integer, nil)


58
59
60
# File 'sig/telegram/bot/types/chat_full_info.rbs', line 58

def paid_message_star_count
  @paid_message_star_count
end

#parent_chatChat? (readonly)

Returns the value of attribute parent_chat.

Returns:



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

def parent_chat
  @parent_chat
end

#permissionsChatPermissions? (readonly)

Returns the value of attribute permissions.

Returns:



40
41
42
# File 'sig/telegram/bot/types/chat_full_info.rbs', line 40

def permissions
  @permissions
end

#personal_chatChat? (readonly)

Returns the value of attribute personal_chat.

Returns:



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

def personal_chat
  @personal_chat
end

#photoChatPhoto? (readonly)

Returns the value of attribute photo.

Returns:



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

def photo
  @photo
end

#pinned_messageMessage? (readonly)

Returns the value of attribute pinned_message.

Returns:



39
40
41
# File 'sig/telegram/bot/types/chat_full_info.rbs', line 39

def pinned_message
  @pinned_message
end

#profile_accent_color_idInteger? (readonly)

Returns the value of attribute profile_accent_color_id.

Returns:

  • (Integer, nil)


28
29
30
# File 'sig/telegram/bot/types/chat_full_info.rbs', line 28

def profile_accent_color_id
  @profile_accent_color_id
end

#profile_background_custom_emoji_idString? (readonly)

Returns the value of attribute profile_background_custom_emoji_id.

Returns:

  • (String, nil)


29
30
31
# File 'sig/telegram/bot/types/chat_full_info.rbs', line 29

def profile_background_custom_emoji_id
  @profile_background_custom_emoji_id
end

#ratingUserRating? (readonly)

Returns the value of attribute rating.

Returns:



55
56
57
# File 'sig/telegram/bot/types/chat_full_info.rbs', line 55

def rating
  @rating
end

#slow_mode_delayInteger? (readonly)

Returns the value of attribute slow_mode_delay.

Returns:

  • (Integer, nil)


43
44
45
# File 'sig/telegram/bot/types/chat_full_info.rbs', line 43

def slow_mode_delay
  @slow_mode_delay
end

#sticker_set_nameString? (readonly)

Returns the value of attribute sticker_set_name.

Returns:

  • (String, nil)


50
51
52
# File 'sig/telegram/bot/types/chat_full_info.rbs', line 50

def sticker_set_name
  @sticker_set_name
end

#titleString? (readonly)

Returns the value of attribute title.

Returns:

  • (String, nil)


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

def title
  @title
end

#typeString (readonly)

Returns the value of attribute type.

Returns:

  • (String)


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

def type
  @type
end

#unique_gift_colorsUniqueGiftColors? (readonly)

Returns the value of attribute unique_gift_colors.

Returns:



57
58
59
# File 'sig/telegram/bot/types/chat_full_info.rbs', line 57

def unique_gift_colors
  @unique_gift_colors
end

#unrestrict_boost_countInteger? (readonly)

Returns the value of attribute unrestrict_boost_count.

Returns:

  • (Integer, nil)


44
45
46
# File 'sig/telegram/bot/types/chat_full_info.rbs', line 44

def unrestrict_boost_count
  @unrestrict_boost_count
end

#usernameString? (readonly)

Returns the value of attribute username.

Returns:

  • (String, nil)


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

def username
  @username
end

Class Method Details

.new(id:, type:, title:, username:, first_name:, last_name:, is_forum:, is_direct_messages:, accent_color_id:, max_reaction_count:, photo:, active_usernames:, birthdate:, business_intro:, business_location:, business_opening_hours:, personal_chat:, parent_chat:, available_reactions:, background_custom_emoji_id:, profile_accent_color_id:, profile_background_custom_emoji_id:, emoji_status_custom_emoji_id:, emoji_status_expiration_date:, bio:, has_private_forwards:, has_restricted_voice_and_video_messages:, join_to_send_messages:, join_by_request:, description:, invite_link:, pinned_message:, permissions:, accepted_gift_types:, can_send_paid_media:, slow_mode_delay:, unrestrict_boost_count:, message_auto_delete_time:, has_aggressive_anti_spam_enabled:, has_hidden_members:, has_protected_content:, has_visible_history:, sticker_set_name:, can_set_sticker_set:, custom_emoji_sticker_set_name:, linked_chat_id:, location:, rating:, first_profile_audio:, unique_gift_colors:, paid_message_star_count:) ⇒ instance .new(attributes) ⇒ instance

Overloads:

  • .new(id:, type:, title:, username:, first_name:, last_name:, is_forum:, is_direct_messages:, accent_color_id:, max_reaction_count:, photo:, active_usernames:, birthdate:, business_intro:, business_location:, business_opening_hours:, personal_chat:, parent_chat:, available_reactions:, background_custom_emoji_id:, profile_accent_color_id:, profile_background_custom_emoji_id:, emoji_status_custom_emoji_id:, emoji_status_expiration_date:, bio:, has_private_forwards:, has_restricted_voice_and_video_messages:, join_to_send_messages:, join_by_request:, description:, invite_link:, pinned_message:, permissions:, accepted_gift_types:, can_send_paid_media:, slow_mode_delay:, unrestrict_boost_count:, message_auto_delete_time:, has_aggressive_anti_spam_enabled:, has_hidden_members:, has_protected_content:, has_visible_history:, sticker_set_name:, can_set_sticker_set:, custom_emoji_sticker_set_name:, linked_chat_id:, location:, rating:, first_profile_audio:, unique_gift_colors:, paid_message_star_count:) ⇒ instance

    Parameters:

    • id: (Integer)
    • type: (String)
    • title: (String)
    • username: (String)
    • first_name: (String)
    • last_name: (String)
    • is_forum: (true)
    • is_direct_messages: (true)
    • accent_color_id: (Integer)
    • max_reaction_count: (Integer)
    • photo: (ChatPhoto)
    • active_usernames: (Array[String])
    • birthdate: (Birthdate)
    • business_intro: (BusinessIntro)
    • business_location: (BusinessLocation)
    • business_opening_hours: (BusinessOpeningHours)
    • personal_chat: (Chat)
    • parent_chat: (Chat)
    • available_reactions: (Array[reaction_type])
    • background_custom_emoji_id: (String)
    • profile_accent_color_id: (Integer)
    • profile_background_custom_emoji_id: (String)
    • emoji_status_custom_emoji_id: (String)
    • emoji_status_expiration_date: (Integer)
    • bio: (String)
    • has_private_forwards: (true)
    • has_restricted_voice_and_video_messages: (true)
    • join_to_send_messages: (true)
    • join_by_request: (true)
    • description: (String)
    • invite_link: (String)
    • pinned_message: (Message)
    • permissions: (ChatPermissions)
    • accepted_gift_types: (AcceptedGiftTypes)
    • can_send_paid_media: (true)
    • slow_mode_delay: (Integer)
    • unrestrict_boost_count: (Integer)
    • message_auto_delete_time: (Integer)
    • has_aggressive_anti_spam_enabled: (true)
    • has_hidden_members: (true)
    • has_protected_content: (true)
    • has_visible_history: (true)
    • sticker_set_name: (String)
    • can_set_sticker_set: (true)
    • custom_emoji_sticker_set_name: (String)
    • linked_chat_id: (Integer)
    • location: (ChatLocation)
    • rating: (UserRating)
    • first_profile_audio: (Audio)
    • unique_gift_colors: (UniqueGiftColors)
    • paid_message_star_count: (Integer)

    Returns:

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

    Parameters:

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

    Returns:

    • (instance)


6
7
# File 'sig/telegram/bot/types/chat_full_info.rbs', line 6

def self.new: (id: Integer, type: String, ?title: String, ?username: String, ?first_name: String, ?last_name: String, ?is_forum: true, ?is_direct_messages: true, accent_color_id: Integer, max_reaction_count: Integer, ?photo: ChatPhoto, ?active_usernames: Array[String], ?birthdate: Birthdate, ?business_intro: BusinessIntro, ?business_location: BusinessLocation, ?business_opening_hours: BusinessOpeningHours, ?personal_chat: Chat, ?parent_chat: Chat, ?available_reactions: Array[reaction_type], ?background_custom_emoji_id: String, ?profile_accent_color_id: Integer, ?profile_background_custom_emoji_id: String, ?emoji_status_custom_emoji_id: String, ?emoji_status_expiration_date: Integer, ?bio: String, ?has_private_forwards: true, ?has_restricted_voice_and_video_messages: true, ?join_to_send_messages: true, ?join_by_request: true, ?description: String, ?invite_link: String, ?pinned_message: Message, ?permissions: ChatPermissions, accepted_gift_types: AcceptedGiftTypes, ?can_send_paid_media: true, ?slow_mode_delay: Integer, ?unrestrict_boost_count: Integer, ?message_auto_delete_time: Integer, ?has_aggressive_anti_spam_enabled: true, ?has_hidden_members: true, ?has_protected_content: true, ?has_visible_history: true, ?sticker_set_name: String, ?can_set_sticker_set: true, ?custom_emoji_sticker_set_name: String, ?linked_chat_id: Integer, ?location: ChatLocation, ?rating: UserRating, ?first_profile_audio: Audio, ?unique_gift_colors: UniqueGiftColors, ?paid_message_star_count: Integer) -> instance
| (?Hash[Symbol | String, untyped] attributes) -> instance