C# Класс TeleBotDotNet.TeleBot

API implementation of January 20, 2016. For documentation, please see https://core.telegram.org/bots/api.
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
DecodeWebResponse JsonData
ExecuteAction dynamic

Открытые методы

Метод Описание
AnswerInlineQuery ( AnswerInlineQueryRequest answerInlineQueryRequest ) : AnswerInlineQueryResponse
ConvertWebhookResponse ( string json ) : UpdateResponse
ForwardMessage ( TeleBotDotNet.Requests.Methods.ForwardMessageRequest forwardMessageRequest ) : TeleBotDotNet.Responses.Methods.ForwardMessageResponse
GetFile ( TeleBotDotNet.Requests.Methods.GetFileRequest getFileRequest ) : TeleBotDotNet.Responses.Methods.GetFileResponse
GetMe ( TeleBotDotNet.Requests.Methods.GetMeRequest getMeRequest ) : TeleBotDotNet.Responses.Methods.GetMeResponse
GetUpdates ( TeleBotDotNet.Requests.Methods.GetUpdatesRequest getUpdatesRequest ) : TeleBotDotNet.Responses.Methods.GetUpdatesResponse
GetUserProfilePhotos ( TeleBotDotNet.Requests.Methods.GetUserProfilePhotosRequest getUserProfilePhotosRequest ) : TeleBotDotNet.Responses.Methods.GetUserProfilePhotosResponse
SendAudio ( SendAudioRequest sendAudioRequest ) : TeleBotDotNet.Responses.Methods.SendAudioResponse
SendChatAction ( TeleBotDotNet.Requests.Methods.SendChatActionRequest sendChatActionRequest ) : TeleBotDotNet.Responses.Methods.SendChatActionResponse
SendDocument ( TeleBotDotNet.Requests.Methods.SendDocumentRequest sendDocumentRequest ) : TeleBotDotNet.Responses.Methods.SendDocumentResponse
SendLocation ( TeleBotDotNet.Requests.Methods.SendLocationRequest sendLocationRequest ) : TeleBotDotNet.Responses.Methods.SendLocationResponse
SendMessage ( SendMessageRequest sendMessageRequest ) : SendMessageResponse
SendPhoto ( TeleBotDotNet.Requests.Methods.SendPhotoRequest sendPhotoRequest ) : TeleBotDotNet.Responses.Methods.SendPhotoResponse
SendSticker ( TeleBotDotNet.Requests.Methods.SendStickerRequest sendStickerRequest ) : TeleBotDotNet.Responses.Methods.SendStickerResponse
SendVideo ( TeleBotDotNet.Requests.Methods.SendVideoRequest sendVideoRequest ) : TeleBotDotNet.Responses.Methods.SendVideoResponse
SetWebhook ( TeleBotDotNet.Requests.Methods.SetWebhookRequest setWebhookRequest ) : TeleBotDotNet.Responses.Methods.SetWebhookResponse
TeleBot ( string apiToken, bool enableLog = false ) : System

Приватные методы

Метод Описание
DecodeWebResponse ( WebResponse webResponse ) : JsonData
ExecuteAction ( BaseMethodRequest request ) : dynamic

Описание методов

AnswerInlineQuery() публичный Метод

public AnswerInlineQuery ( AnswerInlineQueryRequest answerInlineQueryRequest ) : AnswerInlineQueryResponse
answerInlineQueryRequest TeleBotDotNet.Requests.Methods.AnswerInlineQueryRequest
Результат TeleBotDotNet.Responses.Methods.AnswerInlineQueryResponse

ConvertWebhookResponse() публичный Метод

public ConvertWebhookResponse ( string json ) : UpdateResponse
json string
Результат TeleBotDotNet.Responses.Types.UpdateResponse

ForwardMessage() публичный Метод

public ForwardMessage ( TeleBotDotNet.Requests.Methods.ForwardMessageRequest forwardMessageRequest ) : TeleBotDotNet.Responses.Methods.ForwardMessageResponse
forwardMessageRequest TeleBotDotNet.Requests.Methods.ForwardMessageRequest
Результат TeleBotDotNet.Responses.Methods.ForwardMessageResponse

GetFile() публичный Метод

public GetFile ( TeleBotDotNet.Requests.Methods.GetFileRequest getFileRequest ) : TeleBotDotNet.Responses.Methods.GetFileResponse
getFileRequest TeleBotDotNet.Requests.Methods.GetFileRequest
Результат TeleBotDotNet.Responses.Methods.GetFileResponse

GetMe() публичный Метод

public GetMe ( TeleBotDotNet.Requests.Methods.GetMeRequest getMeRequest ) : TeleBotDotNet.Responses.Methods.GetMeResponse
getMeRequest TeleBotDotNet.Requests.Methods.GetMeRequest
Результат TeleBotDotNet.Responses.Methods.GetMeResponse

GetUpdates() публичный Метод

public GetUpdates ( TeleBotDotNet.Requests.Methods.GetUpdatesRequest getUpdatesRequest ) : TeleBotDotNet.Responses.Methods.GetUpdatesResponse
getUpdatesRequest TeleBotDotNet.Requests.Methods.GetUpdatesRequest
Результат TeleBotDotNet.Responses.Methods.GetUpdatesResponse

GetUserProfilePhotos() публичный Метод

public GetUserProfilePhotos ( TeleBotDotNet.Requests.Methods.GetUserProfilePhotosRequest getUserProfilePhotosRequest ) : TeleBotDotNet.Responses.Methods.GetUserProfilePhotosResponse
getUserProfilePhotosRequest TeleBotDotNet.Requests.Methods.GetUserProfilePhotosRequest
Результат TeleBotDotNet.Responses.Methods.GetUserProfilePhotosResponse

SendAudio() публичный Метод

public SendAudio ( SendAudioRequest sendAudioRequest ) : TeleBotDotNet.Responses.Methods.SendAudioResponse
sendAudioRequest SendAudioRequest
Результат TeleBotDotNet.Responses.Methods.SendAudioResponse

SendChatAction() публичный Метод

public SendChatAction ( TeleBotDotNet.Requests.Methods.SendChatActionRequest sendChatActionRequest ) : TeleBotDotNet.Responses.Methods.SendChatActionResponse
sendChatActionRequest TeleBotDotNet.Requests.Methods.SendChatActionRequest
Результат TeleBotDotNet.Responses.Methods.SendChatActionResponse

SendDocument() публичный Метод

public SendDocument ( TeleBotDotNet.Requests.Methods.SendDocumentRequest sendDocumentRequest ) : TeleBotDotNet.Responses.Methods.SendDocumentResponse
sendDocumentRequest TeleBotDotNet.Requests.Methods.SendDocumentRequest
Результат TeleBotDotNet.Responses.Methods.SendDocumentResponse

SendLocation() публичный Метод

public SendLocation ( TeleBotDotNet.Requests.Methods.SendLocationRequest sendLocationRequest ) : TeleBotDotNet.Responses.Methods.SendLocationResponse
sendLocationRequest TeleBotDotNet.Requests.Methods.SendLocationRequest
Результат TeleBotDotNet.Responses.Methods.SendLocationResponse

SendMessage() публичный Метод

public SendMessage ( SendMessageRequest sendMessageRequest ) : SendMessageResponse
sendMessageRequest TeleBotDotNet.Requests.Methods.SendMessageRequest
Результат TeleBotDotNet.Responses.Methods.SendMessageResponse

SendPhoto() публичный Метод

public SendPhoto ( TeleBotDotNet.Requests.Methods.SendPhotoRequest sendPhotoRequest ) : TeleBotDotNet.Responses.Methods.SendPhotoResponse
sendPhotoRequest TeleBotDotNet.Requests.Methods.SendPhotoRequest
Результат TeleBotDotNet.Responses.Methods.SendPhotoResponse

SendSticker() публичный Метод

public SendSticker ( TeleBotDotNet.Requests.Methods.SendStickerRequest sendStickerRequest ) : TeleBotDotNet.Responses.Methods.SendStickerResponse
sendStickerRequest TeleBotDotNet.Requests.Methods.SendStickerRequest
Результат TeleBotDotNet.Responses.Methods.SendStickerResponse

SendVideo() публичный Метод

public SendVideo ( TeleBotDotNet.Requests.Methods.SendVideoRequest sendVideoRequest ) : TeleBotDotNet.Responses.Methods.SendVideoResponse
sendVideoRequest TeleBotDotNet.Requests.Methods.SendVideoRequest
Результат TeleBotDotNet.Responses.Methods.SendVideoResponse

SetWebhook() публичный Метод

public SetWebhook ( TeleBotDotNet.Requests.Methods.SetWebhookRequest setWebhookRequest ) : TeleBotDotNet.Responses.Methods.SetWebhookResponse
setWebhookRequest TeleBotDotNet.Requests.Methods.SetWebhookRequest
Результат TeleBotDotNet.Responses.Methods.SetWebhookResponse

TeleBot() публичный Метод

public TeleBot ( string apiToken, bool enableLog = false ) : System
apiToken string
enableLog bool
Результат System