commit
16a589d239
|
@ -37,6 +37,7 @@ const (
|
||||||
// Constant values for ParseMode in MessageConfig
|
// Constant values for ParseMode in MessageConfig
|
||||||
const (
|
const (
|
||||||
ModeMarkdown = "Markdown"
|
ModeMarkdown = "Markdown"
|
||||||
|
ModeMarkdownV2 = "MarkdownV2"
|
||||||
ModeHTML = "HTML"
|
ModeHTML = "HTML"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
13
helpers.go
13
helpers.go
|
@ -438,6 +438,19 @@ func NewInlineQueryResultArticleMarkdown(id, title, messageText string) InlineQu
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// NewInlineQueryResultArticleMarkdownV2 creates a new inline query article with MarkdownV2 parsing.
|
||||||
|
func NewInlineQueryResultArticleMarkdownV2(id, title, messageText string) InlineQueryResultArticle {
|
||||||
|
return InlineQueryResultArticle{
|
||||||
|
Type: "article",
|
||||||
|
ID: id,
|
||||||
|
Title: title,
|
||||||
|
InputMessageContent: InputTextMessageContent{
|
||||||
|
Text: messageText,
|
||||||
|
ParseMode: "MarkdownV2",
|
||||||
|
},
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// NewInlineQueryResultArticleHTML creates a new inline query article with HTML parsing.
|
// NewInlineQueryResultArticleHTML creates a new inline query article with HTML parsing.
|
||||||
func NewInlineQueryResultArticleHTML(id, title, messageText string) InlineQueryResultArticle {
|
func NewInlineQueryResultArticleHTML(id, title, messageText string) InlineQueryResultArticle {
|
||||||
return InlineQueryResultArticle{
|
return InlineQueryResultArticle{
|
||||||
|
|
Loading…
Reference in New Issue