Add support for Markdown/HTML in NewInlineQueryResultArticle
This commit is contained in:
parent
217764ba45
commit
64f1ab7a89
2 changed files with 5 additions and 3 deletions
|
@ -317,13 +317,14 @@ func NewWebhookWithCert(link string, file interface{}) WebhookConfig {
|
|||
}
|
||||
|
||||
// NewInlineQueryResultArticle creates a new inline query article.
|
||||
func NewInlineQueryResultArticle(id, title, messageText string) InlineQueryResultArticle {
|
||||
func NewInlineQueryResultArticle(id, title, messageText string, parseMode string) InlineQueryResultArticle {
|
||||
return InlineQueryResultArticle{
|
||||
Type: "article",
|
||||
ID: id,
|
||||
Title: title,
|
||||
InputMessageContent: InputTextMessageContent{
|
||||
Text: messageText,
|
||||
ParseMode: parseMode,
|
||||
},
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue