Class Update
This object represents an incoming update. At most one of the optional parameters can be present in any given update.
Inheritance
Inherited Members
Namespace: TelegramBotApi.Types
Assembly: TelegramBotApi.dll
Syntax
[JsonObject(MemberSerialization = MemberSerialization.OptIn, ItemNullValueHandling = NullValueHandling.Ignore)]
public class Update
Properties
| Improve this Doc View SourceCallbackQuery
Optional. New incoming callback query
Declaration
[JsonProperty(PropertyName = "callback_query")]
public CallbackQuery CallbackQuery { get; set; }
Property Value
Type | Description |
---|---|
CallbackQuery |
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 |
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 |
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 |
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 |
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 |
InlineQuery
Optional. New incoming inline query
Declaration
[JsonProperty(PropertyName = "inline_query")]
public InlineQuery InlineQuery { get; set; }
Property Value
Type | Description |
---|---|
InlineQuery |
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 |
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 |
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 |
Type
UpdateType of this update. Only the corresponding optional property will be filled.
Declaration
public UpdateType Type { get; }
Property Value
Type | Description |
---|---|
UpdateType |