Skip to content

Commit 0f0b725

Browse files
committed
feat(TgChatBaseData): removed deprecated TelegramUserIDs []int64 (replaced with BotUserIDs []string)
1 parent 57dcc2a commit 0f0b725

File tree

1 file changed

+3
-11
lines changed

1 file changed

+3
-11
lines changed

botsfwtgmodels/chat_base.go

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -30,19 +30,11 @@ type TgChatBaseData struct {
3030
botsfwmodels.ChatBaseData
3131

3232
// UserGroupID TODO: needs documentation what is it and intended usage
33-
UserGroupID string `datastore:",index,omitempty" firestore:",omitempty" dalgo:",index,omitempty"` // Do index
33+
UserGroupID string `firestore:"userGroupID,omitempty"` // Do index
3434

35-
// TelegramUserID is ID of user in Telegram. It is not ID of user in our app.
36-
// Deprecated: use botsfwmodels.ChatBaseData.BotUserID instead
37-
TelegramUserID int64 `datastore:",noindex,omitempty" firestore:",omitempty"`
35+
LastProcessedUpdateID int `firestore:"lastProcessedUpdateID,omitempty"`
3836

39-
// TelegramUserIDs is a list of IDs of users in Telegram. It is not ID of user in our app.
40-
// Deprecated: use botsfwmodels.ChatBaseData.BotUserIDs instead
41-
TelegramUserIDs []int64 `datastore:",noindex"` // For groups
42-
43-
LastProcessedUpdateID int `datastore:",noindex,omitempty" firestore:",omitempty"`
44-
45-
TgChatInstanceID string // !DO index! // TODO: document what is chat instance and why we need to keep id of it
37+
TgChatInstanceID string `firestore:"tgChatInstanceID,omitempty"` // !DO index! TODO: document why needed
4638
}
4739

4840
func (data *TgChatBaseData) Base() *botsfwmodels.ChatBaseData {

0 commit comments

Comments
 (0)