diff --git a/bees/telegrambee/telegrambee.go b/bees/telegrambee/telegrambee.go index 8da2adfd..0b0de9f0 100644 --- a/bees/telegrambee/telegrambee.go +++ b/bees/telegrambee/telegrambee.go @@ -28,6 +28,7 @@ import ( "os" "strconv" "strings" + "time" telegram "github.com/go-telegram-bot-api/telegram-bot-api" @@ -116,6 +117,11 @@ func (mod *TelegramBee) Run(eventChan chan bees.Event) { Type: "string", Value: strconv.Itoa(update.Message.From.ID), }, + { + Name: "timestamp", + Type: "timestamp", + Value: time.Now(), + }, }, } eventChan <- ev diff --git a/bees/telegrambee/telegrambeefactory.go b/bees/telegrambee/telegrambeefactory.go index 2ba13478..b7ee0f6a 100644 --- a/bees/telegrambee/telegrambeefactory.go +++ b/bees/telegrambee/telegrambeefactory.go @@ -99,6 +99,11 @@ func (factory *TelegramBeeFactory) Events() []bees.EventDescriptor { Description: "User ID sending the message", Type: "string", }, + { + Name: "timestamp", + Description: "Timestamp", + Type: "timestamp", + }, }, }, }