Optimize prompts

This commit is contained in:
HugeFrog24
2026-05-29 21:40:52 +02:00
parent a2cc252e8f
commit ab01fc31d8
9 changed files with 153 additions and 278 deletions
-5
View File
@@ -27,7 +27,6 @@ type pendingAlbum struct {
username, firstName, lastName, languageCode string
isPremium bool
messageTime int
isNewChat, isOwner bool
businessConnectionID string
// timer flushes the album after albumFlushWindow with no further arrivals.
// Each new arrival stops the previous timer (best-effort) and installs a
@@ -47,7 +46,6 @@ func (b *Bot) bufferAlbumItem(
isPremium bool,
languageCode string,
messageTime int,
isNewChat, isOwner bool,
businessConnectionID string,
) {
b.albumBuffersMu.Lock()
@@ -64,8 +62,6 @@ func (b *Bot) bufferAlbumItem(
isPremium: isPremium,
languageCode: languageCode,
messageTime: messageTime,
isNewChat: isNewChat,
isOwner: isOwner,
businessConnectionID: businessConnectionID,
}
b.albumBuffers[msg.MediaGroupID] = album
@@ -116,7 +112,6 @@ func (b *Bot) flushAlbum(ctx context.Context, mediaGroupID string) {
captured.chatID, captured.userID,
captured.username, captured.firstName, captured.lastName,
captured.isPremium, captured.languageCode, captured.messageTime,
captured.isNewChat, captured.isOwner,
captured.businessConnectionID,
)
}