mirror of
https://github.com/HugeFrog24/go-telegram-bot.git
synced 2026-06-29 22:07:12 +00:00
Optimize prompts
This commit is contained in:
@@ -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,
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user