Class: Telegram::Bot::Types::ExternalReplyInfo

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

#animationAnimation? (readonly)

Returns the value of attribute animation.

Returns:



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

def animation
  @animation
end

#audioAudio? (readonly)

Returns the value of attribute audio.

Returns:



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

def audio
  @audio
end

#chatChat? (readonly)

Returns the value of attribute chat.

Returns:



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

def chat
  @chat
end

#checklistChecklist? (readonly)

Returns the value of attribute checklist.

Returns:



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

def checklist
  @checklist
end

#contactContact? (readonly)

Returns the value of attribute contact.

Returns:



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

def contact
  @contact
end

#diceDice? (readonly)

Returns the value of attribute dice.

Returns:



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

def dice
  @dice
end

#documentDocument? (readonly)

Returns the value of attribute document.

Returns:



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

def document
  @document
end

#gameGame? (readonly)

Returns the value of attribute game.

Returns:



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

def game
  @game
end

#giveawayGiveaway? (readonly)

Returns the value of attribute giveaway.

Returns:



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

def giveaway
  @giveaway
end

#giveaway_winnersGiveawayWinners? (readonly)

Returns the value of attribute giveaway_winners.

Returns:



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

def giveaway_winners
  @giveaway_winners
end

#has_media_spoilertrue? (readonly)

Returns the value of attribute has_media_spoiler.

Returns:

  • (true, nil)


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

def has_media_spoiler
  @has_media_spoiler
end

#invoiceInvoice? (readonly)

Returns the value of attribute invoice.

Returns:



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

def invoice
  @invoice
end

Returns the value of attribute link_preview_options.

Returns:



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

def link_preview_options
  @link_preview_options
end

#locationLocation? (readonly)

Returns the value of attribute location.

Returns:



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

def location
  @location
end

#message_idInteger? (readonly)

Returns the value of attribute message_id.

Returns:

  • (Integer, nil)


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

def message_id
  @message_id
end

#originmessage_origin (readonly)

Returns the value of attribute origin.

Returns:

  • (message_origin)


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

def origin
  @origin
end

Returns the value of attribute paid_media.

Returns:



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

def paid_media
  @paid_media
end

#photoArray[PhotoSize]? (readonly)

Returns the value of attribute photo.

Returns:



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

def photo
  @photo
end

#pollPoll? (readonly)

Returns the value of attribute poll.

Returns:



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

def poll
  @poll
end

#stickerSticker? (readonly)

Returns the value of attribute sticker.

Returns:



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

def sticker
  @sticker
end

#storyStory? (readonly)

Returns the value of attribute story.

Returns:



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

def story
  @story
end

#venueVenue? (readonly)

Returns the value of attribute venue.

Returns:



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

def venue
  @venue
end

#videoVideo? (readonly)

Returns the value of attribute video.

Returns:



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

def video
  @video
end

#video_noteVideoNote? (readonly)

Returns the value of attribute video_note.

Returns:



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

def video_note
  @video_note
end

#voiceVoice? (readonly)

Returns the value of attribute voice.

Returns:



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

def voice
  @voice
end

Class Method Details

.new(origin:, chat:, message_id:, link_preview_options:, animation:, audio:, document:, paid_media:, photo:, sticker:, story:, video:, video_note:, voice:, has_media_spoiler:, checklist:, contact:, dice:, game:, giveaway:, giveaway_winners:, invoice:, location:, poll:, venue:) ⇒ instance .new(attributes) ⇒ instance

Overloads:

  • .new(origin:, chat:, message_id:, link_preview_options:, animation:, audio:, document:, paid_media:, photo:, sticker:, story:, video:, video_note:, voice:, has_media_spoiler:, checklist:, contact:, dice:, game:, giveaway:, giveaway_winners:, invoice:, location:, poll:, venue:) ⇒ instance

    Parameters:

    Returns:

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

    Parameters:

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

    Returns:

    • (instance)


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

def self.new: (origin: message_origin, ?chat: Chat, ?message_id: Integer, ?link_preview_options: LinkPreviewOptions, ?animation: Animation, ?audio: Audio, ?document: Document, ?paid_media: PaidMediaInfo, ?photo: Array[PhotoSize], ?sticker: Sticker, ?story: Story, ?video: Video, ?video_note: VideoNote, ?voice: Voice, ?has_media_spoiler: true, ?checklist: Checklist, ?contact: Contact, ?dice: Dice, ?game: Game, ?giveaway: Giveaway, ?giveaway_winners: GiveawayWinners, ?invoice: Invoice, ?location: Location, ?poll: Poll, ?venue: Venue) -> instance
| (?Hash[Symbol | String, untyped] attributes) -> instance