Chat ID is an int64 (telego).

This commit is contained in:
Benjamin A. Shelton 2026-10-20 15:33:45 -06:00
commit a459018095
Signed by: zancarius
GPG key ID: 8BD42DBD6C337E01

View file

@ -10,7 +10,7 @@ import (
)
type Chat struct {
ID int `db:"id"`
ID int64 `db:"id"`
Name string `db:"name"`
}
@ -26,7 +26,7 @@ func NewChatModel(ctx context.Context, db *sqlx.DB) *ChatModel {
return &ChatModel{ctx, db, nil}
}
func (cm *ChatModel) AddChat(id int, name string) (chat *Chat, err error) {
func (cm *ChatModel) AddChat(id int64, name string) (chat *Chat, err error) {
cm.chats = nil
chat = &Chat{}
err = cm.db.GetContext(cm.ctx, chat,