all repos — telegram-bot-api @ 41e859781613898211b9b0d20d04a34c5fa27b69

Golang bindings for the Telegram Bot API

Remove function from BotApi struct

Co-authored-by: Syfaro <syfaro@huefox.com>
Erik Pellizzon erikpellizzon1@gmail.com
Fri, 06 Nov 2020 11:25:32 +0100
commit

41e859781613898211b9b0d20d04a34c5fa27b69

parent

85ecb116757bcc6b4ec985e495d206c5e4443063

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

jump to
M bot.gobot.go

@@ -1072,7 +1072,7 @@ // Note that you don't have to include the formatting style in the input text, or it will be escaped too.

// // parseMode is the text formatting mode (ModeMarkdown, ModeMarkdownV2 or ModeHTML) // text is the input string that will be escaped -func (*BotAPI) EscapeText(parseMode string, text string) string { +func EscapeText(parseMode string, text string) string { var replacer *strings.Replacer if parseMode == ModeHTML {