generic code cleanup

This commit is contained in:
stefanodvx 2025-04-28 16:49:50 +02:00
parent b5c5801ec2
commit 7512919190
5 changed files with 70 additions and 63 deletions

View file

@ -29,7 +29,7 @@ func (b Client) RequestWithContext(
params["allow_sending_without_reply"] = "true"
}
if strings.HasPrefix(method, "send") || strings.HasPrefix(method, "edit") {
params["parse_mode"] = "HTML"
params["parse_mode"] = gotgbot.ParseModeHTML
}
val, err := b.BotClient.RequestWithContext(ctx, token, method, params, data, opts)
if err != nil {