Show / Hide Table of Contents

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 Source

Description

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
| Improve this Doc View Source

Ok

Whether the request was successful

Declaration
[JsonProperty(PropertyName = "ok", Required = Required.Always)]
public bool Ok { get; set; }
Property Value
Type Description
System.Boolean
| Improve this Doc View Source

Parameters

Might help to automatically handle the error

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

ResponseObject

The response object

Declaration
[JsonProperty(PropertyName = "result")]
public T ResponseObject { get; set; }
Property Value
Type Description
T
  • Improve this Doc
  • View Source
Back to top Generated by DocFX