Remove function from BotApi struct

Co-authored-by: Syfaro <syfaro@huefox.com>
bot-api-6.1
Erik Pellizzon 2020-11-06 11:25:32 +01:00 committed by GitHub
parent 85ecb11675
commit 41e8597816
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

2
bot.go
View File

@ -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 {