Skip to content

Commit 7d4ae71

Browse files
authored
Added empty string error return in docs
1 parent 41e8597 commit 7d4ae71

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

bot.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1069,6 +1069,7 @@ func (bot *BotAPI) SetMyCommands(commands []BotCommand) error {
10691069
// EscapeText takes an input text and escape Telegram markup symbols.
10701070
// In this way we can send a text without being afraid of having to escape the characters manually.
10711071
// Note that you don't have to include the formatting style in the input text, or it will be escaped too.
1072+
// If there is an error, an empty string will be returned.
10721073
//
10731074
// parseMode is the text formatting mode (ModeMarkdown, ModeMarkdownV2 or ModeHTML)
10741075
// text is the input string that will be escaped

0 commit comments

Comments
 (0)