From 8c1816a3d257cfe702c576fbfaaa7c533208913f Mon Sep 17 00:00:00 2001 From: "Benjamin A. Shelton" Date: Tue, 20 Oct 2026 15:33:29 -0600 Subject: [PATCH] Chat ID should be int64. --- cmd/bot/main.go | 2 +- internal/commands/chats.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/bot/main.go b/cmd/bot/main.go index 9f812a1..e6ac17f 100644 --- a/cmd/bot/main.go +++ b/cmd/bot/main.go @@ -61,7 +61,7 @@ func main() { Description: "Adds a chat to the bot. This is analogous to running /start within a chat.", Action: cmdHost.Chats().AddChat, Flags: []cli.Flag{ - &cli.IntFlag{ + &cli.Int64Flag{ Name: "id", Aliases: []string{"i"}, Usage: "Specifies the chat id.", diff --git a/internal/commands/chats.go b/internal/commands/chats.go index db34432..83ff62f 100644 --- a/internal/commands/chats.go +++ b/internal/commands/chats.go @@ -21,7 +21,7 @@ func (c *chats) AddChat(ctx context.Context, cmd *cli.Command) error { logger := logging.Get("commands") logger.SetFormat("chat add: {{message}}") - id := cmd.Int("id") + id := cmd.Int64("id") name := cmd.String("name") mdb := models.OpenDatabase(ctx, c.settings)