event: use RawMessage instead of map for bot command arguments
Some checks are pending
Go / Lint (latest) (push) Waiting to run
Go / Build (old, libolm) (push) Waiting to run
Go / Build (latest, libolm) (push) Waiting to run
Go / Build (old, goolm) (push) Waiting to run
Go / Build (latest, goolm) (push) Waiting to run

This commit is contained in:
Tulir Asokan 2025-09-01 00:45:32 +03:00
commit 61a90da145

View file

@ -6,6 +6,10 @@
package event
import (
"encoding/json"
)
type BotCommandsEventContent struct {
Sigil string `json:"sigil,omitempty"`
Commands []*BotCommand `json:"commands,omitempty"`
@ -40,6 +44,6 @@ type BotCommandArgument struct {
}
type BotCommandInput struct {
Syntax string `json:"syntax"`
Arguments map[string]any `json:"arguments,omitempty"`
Syntax string `json:"syntax"`
Arguments json.RawMessage `json:"arguments,omitempty"`
}