feat: sync built-in sticker bot

This commit is contained in:
A 2026-07-01 21:55:55 +08:00
parent 7096625e13
commit 6867d201ed
60 changed files with 7063 additions and 144 deletions

View file

@ -15,11 +15,11 @@ type UserStore struct {
nextID int64
}
// NewUserStore 创建内存 UserStore。内置系统账号777000 / BotFather预置进表,
// 与 postgres 的迁移种子0005 / 0090保持双 store 行为一致。
// NewUserStore 创建内存 UserStore。内置系统账号777000 / BotFather / Stickers
// 预置进表,与 postgres 的迁移种子保持双 store 行为一致。
func NewUserStore() *UserStore {
s := &UserStore{byID: make(map[int64]domain.User), nextID: domain.UserIDSequenceBase}
for _, id := range []int64{domain.OfficialSystemUserID, domain.BotFatherUserID} {
for _, id := range []int64{domain.OfficialSystemUserID, domain.BotFatherUserID, domain.StickersBotUserID} {
if u, ok := domain.SystemUserByID(id); ok {
s.byID[u.ID] = u
}