Show / Hide Table of Contents

Class PreCheckoutQuery

This object contains information about an incoming pre-checkout query.

Inheritance
System.Object
PreCheckoutQuery
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: TelegramBotApi.Types.Payment
Assembly: TelegramBotApi.dll
Syntax
[JsonObject(MemberSerialization = MemberSerialization.OptIn, ItemNullValueHandling = NullValueHandling.Ignore)]
public class PreCheckoutQuery

Properties

| Improve this Doc View Source

Currency

Three-letter ISO 4217 currency code

Declaration
[JsonProperty(PropertyName = "currency", Required = Required.Always)]
public string Currency { get; set; }
Property Value
Type Description
System.String
| Improve this Doc View Source

From

User who sent the query

Declaration
[JsonProperty(PropertyName = "from", Required = Required.Always)]
public User From { get; set; }
Property Value
Type Description
User
| Improve this Doc View Source

Id

Unique query identifier

Declaration
[JsonProperty(PropertyName = "id", Required = Required.Always)]
public string Id { get; set; }
Property Value
Type Description
System.String
| Improve this Doc View Source

InvoicePayload

Bot specified invoice payload

Declaration
[JsonProperty(PropertyName = "invoice_payload", Required = Required.Always)]
public string InvoicePayload { get; set; }
Property Value
Type Description
System.String
| Improve this Doc View Source

OrderInfo

Optional. Order info provided by the user

Declaration
[JsonProperty(PropertyName = "order_info")]
public OrderInfo OrderInfo { get; set; }
Property Value
Type Description
OrderInfo
| Improve this Doc View Source

ShippingOptionId

Optional. Identifier of the shipping option chosen by the user

Declaration
[JsonProperty(PropertyName = "shipping_option_id")]
public string ShippingOptionId { get; set; }
Property Value
Type Description
System.String
| Improve this Doc View Source

TotalAmount

Total price in the smallest units of the currency (integer, not float/double). For example, for a price of US$ 1.45 pass amount = 145. See the exp parameter in currencies.json, it shows the number of digits past the decimal point for each currency (2 for the majority of currencies).

Declaration
[JsonProperty(PropertyName = "total_amount", Required = Required.Always)]
public int TotalAmount { get; set; }
Property Value
Type Description
System.Int32
  • Improve this Doc
  • View Source
Back to top Generated by DocFX