Chat ID should be int64.

This commit is contained in:
Benjamin A. Shelton 2026-10-20 15:33:29 -06:00
commit 8c1816a3d2
Signed by: zancarius
GPG key ID: 8BD42DBD6C337E01
2 changed files with 2 additions and 2 deletions

View file

@ -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.",

View file

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