C# Class TeleBotDotNet.TeleBot

API implementation of January 20, 2016. For documentation, please see https://core.telegram.org/bots/api.
Mostra file Open project: LouisMT/TeleBotDotNet Class Usage Examples

Private Properties

Property Type Description
DecodeWebResponse JsonData
ExecuteAction dynamic

Public Methods

Method Description
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

Private Methods

Method Description
DecodeWebResponse ( WebResponse webResponse ) : JsonData
ExecuteAction ( BaseMethodRequest request ) : dynamic

Method Details

AnswerInlineQuery() public method

public AnswerInlineQuery ( AnswerInlineQueryRequest answerInlineQueryRequest ) : AnswerInlineQueryResponse
answerInlineQueryRequest TeleBotDotNet.Requests.Methods.AnswerInlineQueryRequest
return TeleBotDotNet.Responses.Methods.AnswerInlineQueryResponse

ConvertWebhookResponse() public method

public ConvertWebhookResponse ( string json ) : UpdateResponse
json string
return TeleBotDotNet.Responses.Types.UpdateResponse

ForwardMessage() public method

public ForwardMessage ( TeleBotDotNet.Requests.Methods.ForwardMessageRequest forwardMessageRequest ) : TeleBotDotNet.Responses.Methods.ForwardMessageResponse
forwardMessageRequest TeleBotDotNet.Requests.Methods.ForwardMessageRequest
return TeleBotDotNet.Responses.Methods.ForwardMessageResponse

GetFile() public method

public GetFile ( TeleBotDotNet.Requests.Methods.GetFileRequest getFileRequest ) : TeleBotDotNet.Responses.Methods.GetFileResponse
getFileRequest TeleBotDotNet.Requests.Methods.GetFileRequest
return TeleBotDotNet.Responses.Methods.GetFileResponse

GetMe() public method

public GetMe ( TeleBotDotNet.Requests.Methods.GetMeRequest getMeRequest ) : TeleBotDotNet.Responses.Methods.GetMeResponse
getMeRequest TeleBotDotNet.Requests.Methods.GetMeRequest
return TeleBotDotNet.Responses.Methods.GetMeResponse

GetUpdates() public method

public GetUpdates ( TeleBotDotNet.Requests.Methods.GetUpdatesRequest getUpdatesRequest ) : TeleBotDotNet.Responses.Methods.GetUpdatesResponse
getUpdatesRequest TeleBotDotNet.Requests.Methods.GetUpdatesRequest
return TeleBotDotNet.Responses.Methods.GetUpdatesResponse

GetUserProfilePhotos() public method

public GetUserProfilePhotos ( TeleBotDotNet.Requests.Methods.GetUserProfilePhotosRequest getUserProfilePhotosRequest ) : TeleBotDotNet.Responses.Methods.GetUserProfilePhotosResponse
getUserProfilePhotosRequest TeleBotDotNet.Requests.Methods.GetUserProfilePhotosRequest
return TeleBotDotNet.Responses.Methods.GetUserProfilePhotosResponse

SendAudio() public method

public SendAudio ( SendAudioRequest sendAudioRequest ) : TeleBotDotNet.Responses.Methods.SendAudioResponse
sendAudioRequest SendAudioRequest
return TeleBotDotNet.Responses.Methods.SendAudioResponse

SendChatAction() public method

public SendChatAction ( TeleBotDotNet.Requests.Methods.SendChatActionRequest sendChatActionRequest ) : TeleBotDotNet.Responses.Methods.SendChatActionResponse
sendChatActionRequest TeleBotDotNet.Requests.Methods.SendChatActionRequest
return TeleBotDotNet.Responses.Methods.SendChatActionResponse

SendDocument() public method

public SendDocument ( TeleBotDotNet.Requests.Methods.SendDocumentRequest sendDocumentRequest ) : TeleBotDotNet.Responses.Methods.SendDocumentResponse
sendDocumentRequest TeleBotDotNet.Requests.Methods.SendDocumentRequest
return TeleBotDotNet.Responses.Methods.SendDocumentResponse

SendLocation() public method

public SendLocation ( TeleBotDotNet.Requests.Methods.SendLocationRequest sendLocationRequest ) : TeleBotDotNet.Responses.Methods.SendLocationResponse
sendLocationRequest TeleBotDotNet.Requests.Methods.SendLocationRequest
return TeleBotDotNet.Responses.Methods.SendLocationResponse

SendMessage() public method

public SendMessage ( SendMessageRequest sendMessageRequest ) : SendMessageResponse
sendMessageRequest TeleBotDotNet.Requests.Methods.SendMessageRequest
return TeleBotDotNet.Responses.Methods.SendMessageResponse

SendPhoto() public method

public SendPhoto ( TeleBotDotNet.Requests.Methods.SendPhotoRequest sendPhotoRequest ) : TeleBotDotNet.Responses.Methods.SendPhotoResponse
sendPhotoRequest TeleBotDotNet.Requests.Methods.SendPhotoRequest
return TeleBotDotNet.Responses.Methods.SendPhotoResponse

SendSticker() public method

public SendSticker ( TeleBotDotNet.Requests.Methods.SendStickerRequest sendStickerRequest ) : TeleBotDotNet.Responses.Methods.SendStickerResponse
sendStickerRequest TeleBotDotNet.Requests.Methods.SendStickerRequest
return TeleBotDotNet.Responses.Methods.SendStickerResponse

SendVideo() public method

public SendVideo ( TeleBotDotNet.Requests.Methods.SendVideoRequest sendVideoRequest ) : TeleBotDotNet.Responses.Methods.SendVideoResponse
sendVideoRequest TeleBotDotNet.Requests.Methods.SendVideoRequest
return TeleBotDotNet.Responses.Methods.SendVideoResponse

SetWebhook() public method

public SetWebhook ( TeleBotDotNet.Requests.Methods.SetWebhookRequest setWebhookRequest ) : TeleBotDotNet.Responses.Methods.SetWebhookResponse
setWebhookRequest TeleBotDotNet.Requests.Methods.SetWebhookRequest
return TeleBotDotNet.Responses.Methods.SetWebhookResponse

TeleBot() public method

public TeleBot ( string apiToken, bool enableLog = false ) : System
apiToken string
enableLog bool
return System