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 and only in private chats.
Instance Attribute Summary collapse
-
#description ⇒ String
Product description; 0-255 characters.
-
#invoice ⇒ TD::Types::Invoice
Invoice.
-
#payload ⇒ String
The invoice payload.
-
#photo_height ⇒ Integer
Product photo height.
-
#photo_size ⇒ Integer
Product photo size.
-
#photo_url ⇒ String?
Product photo URL; optional.
-
#photo_width ⇒ Integer
Product photo width.
-
#provider_data ⇒ String
JSON-encoded data about the invoice, which will be shared with the payment provider.
-
#provider_token ⇒ String
Payment provider token.
-
#start_parameter ⇒ String
Unique invoice bot start_parameter for the generation of this invoice.
-
#title ⇒ String
Product title; 1-32 characters.
Method Summary
Methods inherited from Base
Instance Attribute Details
#description ⇒ String
Product description; 0-255 characters.
15 16 17 |
# File 'lib/tdlib/types/input_message_content/invoice.rb', line 15 def description @description end |
#invoice ⇒ TD::Types::Invoice
Invoice.
15 16 17 |
# File 'lib/tdlib/types/input_message_content/invoice.rb', line 15 def invoice @invoice end |
#payload ⇒ String
The invoice payload.
15 16 17 |
# File 'lib/tdlib/types/input_message_content/invoice.rb', line 15 def payload @payload end |
#photo_height ⇒ Integer
Product photo height.
15 16 17 |
# File 'lib/tdlib/types/input_message_content/invoice.rb', line 15 def photo_height @photo_height end |
#photo_size ⇒ Integer
Product photo size.
15 16 17 |
# File 'lib/tdlib/types/input_message_content/invoice.rb', line 15 def photo_size @photo_size end |
#photo_url ⇒ String?
Product photo URL; optional.
15 16 17 |
# File 'lib/tdlib/types/input_message_content/invoice.rb', line 15 def photo_url @photo_url end |
#photo_width ⇒ Integer
Product photo width.
15 16 17 |
# File 'lib/tdlib/types/input_message_content/invoice.rb', line 15 def photo_width @photo_width end |
#provider_data ⇒ String
JSON-encoded data about the invoice, which will be shared with the payment provider.
15 16 17 |
# File 'lib/tdlib/types/input_message_content/invoice.rb', line 15 def provider_data @provider_data end |
#provider_token ⇒ String
Payment provider token.
15 16 17 |
# File 'lib/tdlib/types/input_message_content/invoice.rb', line 15 def provider_token @provider_token end |
#start_parameter ⇒ String
Unique invoice bot start_parameter for the generation of this invoice.
15 16 17 |
# File 'lib/tdlib/types/input_message_content/invoice.rb', line 15 def start_parameter @start_parameter end |
#title ⇒ String
Product title; 1-32 characters.
15 16 17 |
# File 'lib/tdlib/types/input_message_content/invoice.rb', line 15 def title @title end |