all repos — telegram-bot-api @ 7d4ae712ae1064f8ad4baa8f66105ac55de21ed0

Golang bindings for the Telegram Bot API

Added empty string error return in docs
Erik Pellizzon erikpellizzon1@gmail.com
Fri, 06 Nov 2020 22:07:29 +0100
commit

7d4ae712ae1064f8ad4baa8f66105ac55de21ed0

parent

41e859781613898211b9b0d20d04a34c5fa27b69

1 files changed, 1 insertions(+), 0 deletions(-)

jump to
M bot.gobot.go

@@ -1069,6 +1069,7 @@

// 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. // 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) // text is the input string that will be escaped