Added empty string error return in docs

bot-api-6.1
Erik Pellizzon 2020-11-06 22:07:29 +01:00 committed by GitHub
parent 41e8597816
commit 7d4ae712ae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

1
bot.go
View File

@ -1069,6 +1069,7 @@ func (bot *BotAPI) SetMyCommands(commands []BotCommand) error {
// EscapeText takes an input text and escape Telegram markup symbols. // EscapeText takes an input text and escape Telegram markup symbols.
// In this way we can send a text without being afraid of having to escape the characters manually. // In this way we can send a text without being afraid of having to escape the characters manually.
// Note that you don't have to include the formatting style in the input text, or it will be escaped too. // Note that you don't have to include the formatting style in the input text, or it will be escaped too.
// If there is an error, an empty string will be returned.
// //
// parseMode is the text formatting mode (ModeMarkdown, ModeMarkdownV2 or ModeHTML) // parseMode is the text formatting mode (ModeMarkdown, ModeMarkdownV2 or ModeHTML)
// text is the input string that will be escaped // text is the input string that will be escaped