teldrive/pkg/models/bot.go
divyam234 616cf4ad4a
feat: Add Automatic Channel Rollover
- Implement channel rollover based on part count limits
- Auto-create channels and add bots as admins
- Add teldrive.kv key-value table
- Deduplicate bots and set (user_id, token) as primary key
2025-10-07 22:05:55 +05:30

7 lines
153 B
Go

package models
type Bot struct {
Token string `gorm:"type:text;primaryKey"`
UserId int64 `gorm:"type:bigint"`
BotId int64 `gorm:"type:bigint"`
}