Documentation
¶
Index ¶
- func AllChatIDs() []int64
- func DeleteIndexChat(ctx context.Context, chatID int64) error
- func DeleteSubBot(ctx context.Context, botID int64) error
- func InitDatabase(ctx context.Context) error
- func UpsertIndexChat(ctx context.Context, IndexChat *IndexChat) error
- func UpsertSubBot(ctx context.Context, subBot *SubBot) error
- func UpsertUserInfo(ctx context.Context, userInfo *UserInfo) error
- func Watching(chatID int64) bool
- type ChatType
- type IndexChat
- type SubBot
- type UserInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AllChatIDs ¶ added in v0.8.0
func AllChatIDs() []int64
func InitDatabase ¶
Types ¶
type IndexChat ¶
type IndexChat struct {
ChatID int64 `gorm:"primaryKey" json:"chat_id"`
Title string `json:"title"`
Username string `json:"username"`
Type int `json:"type"`
Watching bool `gorm:"default:true" json:"watching"`
NoDelete bool `json:"no_delete"`
Public bool `gorm:"default:false" json:"public"`
}
func GetAllPublicIndexChats ¶
Click to show internal directories.
Click to hide internal directories.