Spaces:
Paused
Paused
File size: 478 Bytes
5f51c88 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | // In file: internal/bot/queue.go
package bot
import "github.com/celestix/gotgproto/ext"
// QueueItem holds the necessary context and update for a message to be processed.
// It is EXPORTED (starts with a capital letter) so other packages can use it.
type QueueItem struct {
Ctx *ext.Context
Update *ext.Update
}
// MessageQueue is the channel that will act as our queue.
// It is also EXPORTED so it can be accessed from other packages.
var MessageQueue chan QueueItem |