-
-
Notifications
You must be signed in to change notification settings - Fork 331
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add timestamp to telegram events #153
Conversation
bees/telegrambee/telegrambee.go
Outdated
@@ -116,6 +117,11 @@ func (mod *TelegramBee) Run(eventChan chan bees.Event) { | |||
Type: "string", | |||
Value: strconv.Itoa(update.Message.From.ID), | |||
}, | |||
{ | |||
Name: "timestamp", | |||
Type: "string", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we use unix timestamps here, we should treat the parameter as an integer as well. That being said, I think we actually wanna support handling timestamp as time.Time internally and let the conversion routine in placeholders.go do its magic (essentially make that support time.Time and let it convert from/to strings and integers).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good idea.
04467ef
to
196b3db
Compare
Now that you added a time format to Beehive, we could take another look at this! |
196b3db
to
991e8d6
Compare
991e8d6
to
14d0c57
Compare
@muesli updated! |
@muesli mentioned its internal Go type is separate to that type definition here, which we mostly use for the admin interface.
Minor but useful thingie so we can use timestamps with action templates.