Class ApiResponse<T>
Represents a response from the telegram bot API
Inheritance
System.Object
ApiResponse<T>
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 ApiResponse<T>
Type Parameters
Name | Description |
---|---|
T |
Properties
| Improve this Doc View SourceDescription
If the request has failed, information about why it did fail
Declaration
[JsonProperty(PropertyName = "description")]
public string Description { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Ok
Whether the request was successful
Declaration
[JsonProperty(PropertyName = "ok", Required = Required.Always)]
public bool Ok { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Parameters
Might help to automatically handle the error
Declaration
[JsonProperty(PropertyName = "parameters")]
public ResponseParameters Parameters { get; set; }
Property Value
Type | Description |
---|---|
ResponseParameters |
ResponseObject
The response object
Declaration
[JsonProperty(PropertyName = "result")]
public T ResponseObject { get; set; }
Property Value
Type | Description |
---|---|
T |