tgf / internal /bot /queue.go
Mohammad Shahid
added file que system
5f51c88
raw
history blame contribute delete
478 Bytes
// 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