Class: TD::Types::InputMessageContent::Invoice
- Inherits:
-
TD::Types::InputMessageContent
- Object
- Dry::Struct
- Base
- TD::Types::InputMessageContent
- TD::Types::InputMessageContent::Invoice
- Defined in:
- lib/tdlib/types/input_message_content/invoice.rb
Overview
A message with an invoice; can be used only by bots.
Instance Attribute Summary collapse
-
#description ⇒ TD::Types::String
Product description; 0-255 characters.
-
#invoice ⇒ TD::Types::Invoice
Invoice.
-
#paid_media ⇒ TD::Types::InputPaidMedia
The content of paid media attached to the invoice; pass null if none.
-
#paid_media_caption ⇒ TD::Types::FormattedText
Paid media caption; pass null to use an empty caption; 0-getOption(“message_caption_length_max”) characters.
-
#payload ⇒ String
The invoice payload.
-
#photo_height ⇒ Integer
Product photo height.
-
#photo_size ⇒ Integer
Product photo size.
-
#photo_url ⇒ TD::Types::String?
Product photo URL; optional.
-
#photo_width ⇒ Integer
Product photo width.
-
#provider_data ⇒ TD::Types::String
JSON-encoded data about the invoice, which will be shared with the payment provider.
-
#provider_token ⇒ TD::Types::String?
Payment provider token; may be empty for payments in Telegram Stars.
-
#start_parameter ⇒ TD::Types::String
Unique invoice bot deep link parameter for the generation of this invoice.
-
#title ⇒ TD::Types::String
Product title; 1-32 characters.
Method Summary
Methods inherited from Base
Instance Attribute Details
#description ⇒ TD::Types::String
Product description; 0-255 characters.
21 22 23 |
# File 'lib/tdlib/types/input_message_content/invoice.rb', line 21 def description @description end |
#invoice ⇒ TD::Types::Invoice
Invoice.
21 22 23 |
# File 'lib/tdlib/types/input_message_content/invoice.rb', line 21 def invoice @invoice end |
#paid_media ⇒ TD::Types::InputPaidMedia
The content of paid media attached to the invoice; pass null if none.
21 22 23 |
# File 'lib/tdlib/types/input_message_content/invoice.rb', line 21 def paid_media @paid_media end |
#paid_media_caption ⇒ TD::Types::FormattedText
Paid media caption; pass null to use an empty caption; 0-getOption(“message_caption_length_max”) characters.
21 22 23 |
# File 'lib/tdlib/types/input_message_content/invoice.rb', line 21 def paid_media_caption @paid_media_caption end |
#payload ⇒ String
The invoice payload.
21 22 23 |
# File 'lib/tdlib/types/input_message_content/invoice.rb', line 21 def payload @payload end |
#photo_height ⇒ Integer
Product photo height.
21 22 23 |
# File 'lib/tdlib/types/input_message_content/invoice.rb', line 21 def photo_height @photo_height end |
#photo_size ⇒ Integer
Product photo size.
21 22 23 |
# File 'lib/tdlib/types/input_message_content/invoice.rb', line 21 def photo_size @photo_size end |
#photo_url ⇒ TD::Types::String?
Product photo URL; optional.
21 22 23 |
# File 'lib/tdlib/types/input_message_content/invoice.rb', line 21 def photo_url @photo_url end |
#photo_width ⇒ Integer
Product photo width.
21 22 23 |
# File 'lib/tdlib/types/input_message_content/invoice.rb', line 21 def photo_width @photo_width end |
#provider_data ⇒ TD::Types::String
JSON-encoded data about the invoice, which will be shared with the payment provider.
21 22 23 |
# File 'lib/tdlib/types/input_message_content/invoice.rb', line 21 def provider_data @provider_data end |
#provider_token ⇒ TD::Types::String?
Payment provider token; may be empty for payments in Telegram Stars.
21 22 23 |
# File 'lib/tdlib/types/input_message_content/invoice.rb', line 21 def provider_token @provider_token end |
#start_parameter ⇒ TD::Types::String
Unique invoice bot deep link parameter for the generation of this invoice. If empty, it would be possible to pay directly from forwards of the invoice message.
21 22 23 |
# File 'lib/tdlib/types/input_message_content/invoice.rb', line 21 def start_parameter @start_parameter end |
#title ⇒ TD::Types::String
Product title; 1-32 characters.
21 22 23 |
# File 'lib/tdlib/types/input_message_content/invoice.rb', line 21 def title @title end |