diff --git a/alita/modules/rules.go b/alita/modules/rules.go index 84313008..3d371204 100644 --- a/alita/modules/rules.go +++ b/alita/modules/rules.go @@ -212,9 +212,9 @@ func (m moduleStruct) rulesBtn(bot *gotgbot.Bot, ctx *ext.Context) error { } else { customRulesBtn := db.GetChatRulesInfo(chat.Id).RulesBtn if customRulesBtn == "" { - text = fmt.Sprintf("You haven't set a custom rules button yet. The default text \"%q\" will be used.", m.defaultRulesBtn) + text = fmt.Sprintf("You haven't set a custom rules button yet. The default text \"%s\" will be used.", m.defaultRulesBtn) } else { - text = fmt.Sprintf("The rules button is currently set to the following text:\n %q", customRulesBtn) + text = fmt.Sprintf("The rules button is currently set to the following text:\n %s", customRulesBtn) } } diff --git a/alita/utils/helpers/helpers.go b/alita/utils/helpers/helpers.go index f844b095..403469c6 100644 --- a/alita/utils/helpers/helpers.go +++ b/alita/utils/helpers/helpers.go @@ -91,7 +91,7 @@ func MentionHtml(userId int64, name string) string { // MentionUrl returns a mention in HTML format. func MentionUrl(url, name string) string { - return fmt.Sprintf("%q", url, html.EscapeString(name)) + return fmt.Sprintf("%s", url, html.EscapeString(name)) } // GetFullName returns the full name of a user.