Show / Hide Table of Contents

Class Update

This object represents an incoming update. At most one of the optional parameters can be present in any given update.

Inheritance
System.Object
Update
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
Assembly: TelegramBotApi.dll
Syntax
[JsonObject(MemberSerialization = MemberSerialization.OptIn, ItemNullValueHandling = NullValueHandling.Ignore)]
public class Update

Properties

| Improve this Doc View Source

CallbackQuery

Optional. New incoming callback query

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

ChannelPost

Optional. New incoming channel post of any kind — text, photo, sticker, etc.

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

ChosenInlineResult

Optional. The result of an inline query that was chosen by a user and sent to their chat partner

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

EditedChannelPost

Optional. New version of a channel post that is known to the bot and was edited

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

EditedMessage

Optional. New version of a message that is known to the bot and was edited

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

Id

The update's unique identifier

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

InlineQuery

Optional. New incoming inline query

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

Message

Optional. New incoming message of any kind — text, photo, sticker, etc.

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

PreCheckoutQuery

Optional. New incoming pre-checkout query. Contains full information about checkout

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

ShippingQuery

Optional. New incoming shipping query. Only for invoices with flexible price

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

Type

UpdateType of this update. Only the corresponding optional property will be filled.

Declaration
public UpdateType Type { get; }
Property Value
Type Description
UpdateType
  • Improve this Doc
  • View Source
Back to top Generated by DocFX