C# Class SanderVantEinde.TelegramBot.TemplateInlineHandler

Mostrar archivo Open project: sandervanteinde/TelegramBot

Protected Methods

Method Description
AddArticle ( string id, string title, string messageText, string parseMode = null, bool disableWebPagePreview = false, string url = null, bool hideUrl = false, string description = null, string thumbUrl = null, int thumbWidth, int thumbHeight ) : void
AddGif ( string id, string gifUrl, int gifWidth, int gifHeight, string thumbUrl = null, string title = null, string caption = null, string messageText = null, string parseMode = null, bool disableWebPagePreview = false ) : void
AddMpeg4Gif ( string id, string mpeg4Url, int mpeg4Width, int mpeg4Height, string thumbUrl = null, string title = null, string caption = null, string messageText = null, string parseMode = null, bool disableWebPagePreview = false ) : void
AddPhoto ( string id, string photoUrl, string thumbUrl, int photoWidth, int photoHeight, string title = null, string description = null, string caption = null, string messageText = null, string parseMode = null, bool disableWebPagePreview = false ) : void
AddVideo ( string id, string videoUrl, string mimeType, string messageText = null, string parseMode = null, bool disableWegPagePreview = false, int videoWidth, int videoHeight, int videoDuration, string thumbUrl = null, string title = null, string description = null ) : void
HandleInlineMessage ( InlineQuery query, TelegramBot bot ) : System.Threading.Tasks.Task

Private Methods

Method Description
AddQueryResult ( InlineQueryResult result ) : void
GetInlineMessageResult ( InlineQuery query, TelegramBot bot ) : System.Threading.Tasks.Task

Method Details

AddArticle() protected method

protected AddArticle ( string id, string title, string messageText, string parseMode = null, bool disableWebPagePreview = false, string url = null, bool hideUrl = false, string description = null, string thumbUrl = null, int thumbWidth, int thumbHeight ) : void
id string
title string
messageText string
parseMode string
disableWebPagePreview bool
url string
hideUrl bool
description string
thumbUrl string
thumbWidth int
thumbHeight int
return void

AddGif() protected method

protected AddGif ( string id, string gifUrl, int gifWidth, int gifHeight, string thumbUrl = null, string title = null, string caption = null, string messageText = null, string parseMode = null, bool disableWebPagePreview = false ) : void
id string
gifUrl string
gifWidth int
gifHeight int
thumbUrl string
title string
caption string
messageText string
parseMode string
disableWebPagePreview bool
return void

AddMpeg4Gif() protected method

protected AddMpeg4Gif ( string id, string mpeg4Url, int mpeg4Width, int mpeg4Height, string thumbUrl = null, string title = null, string caption = null, string messageText = null, string parseMode = null, bool disableWebPagePreview = false ) : void
id string
mpeg4Url string
mpeg4Width int
mpeg4Height int
thumbUrl string
title string
caption string
messageText string
parseMode string
disableWebPagePreview bool
return void

AddPhoto() protected method

protected AddPhoto ( string id, string photoUrl, string thumbUrl, int photoWidth, int photoHeight, string title = null, string description = null, string caption = null, string messageText = null, string parseMode = null, bool disableWebPagePreview = false ) : void
id string
photoUrl string
thumbUrl string
photoWidth int
photoHeight int
title string
description string
caption string
messageText string
parseMode string
disableWebPagePreview bool
return void

AddVideo() protected method

protected AddVideo ( string id, string videoUrl, string mimeType, string messageText = null, string parseMode = null, bool disableWegPagePreview = false, int videoWidth, int videoHeight, int videoDuration, string thumbUrl = null, string title = null, string description = null ) : void
id string
videoUrl string
mimeType string
messageText string
parseMode string
disableWegPagePreview bool
videoWidth int
videoHeight int
videoDuration int
thumbUrl string
title string
description string
return void

HandleInlineMessage() protected abstract method

protected abstract HandleInlineMessage ( InlineQuery query, TelegramBot bot ) : System.Threading.Tasks.Task
query InlineQuery
bot TelegramBot
return System.Threading.Tasks.Task