Spaces:
Paused
Paused
| // 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 |