From 41e859781613898211b9b0d20d04a34c5fa27b69 Mon Sep 17 00:00:00 2001 From: Erik Pellizzon Date: Fri, 6 Nov 2020 11:25:32 +0100 Subject: [PATCH] Remove function from BotApi struct Co-authored-by: Syfaro --- bot.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot.go b/bot.go index f1abe30..f407515 100644 --- a/bot.go +++ b/bot.go @@ -1072,7 +1072,7 @@ func (bot *BotAPI) SetMyCommands(commands []BotCommand) error { // // 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 {