alpha version
This commit is contained in:
31
bus/messages.go
Normal file
31
bus/messages.go
Normal file
@ -0,0 +1,31 @@
|
||||
package bus
|
||||
|
||||
import (
|
||||
"github.com/alex-savin/go-receipt-tracker/models"
|
||||
tele "gopkg.in/telebot.v4"
|
||||
)
|
||||
|
||||
type Message struct {
|
||||
TBCmd *models.TelegramBotCommand
|
||||
TBParseMode string
|
||||
TbContext tele.Context //
|
||||
Text string //
|
||||
Image *Image //
|
||||
InlineKeyboard *tele.ReplyMarkup //
|
||||
ReplyType string //
|
||||
}
|
||||
|
||||
type Image struct {
|
||||
ID string //
|
||||
Filename string //
|
||||
Type string //
|
||||
Base64 string //
|
||||
Caption byte //
|
||||
Parsed map[string]string //
|
||||
}
|
||||
|
||||
type ConnectionStatus struct {
|
||||
WorkerID string
|
||||
WorkerType string
|
||||
IsConnected bool
|
||||
}
|
Reference in New Issue
Block a user