botman / driver-telegram

BotMan Telegram Driver

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

"date": field

riccardogiorato opened this issue · comments

I'm trying to understand when can I extend your driver to get the telegram "date" of a message.

In my bot I'd love to get the user datetime sent by Telegram POST request on every message to handle some logic.

Is it possible?

Hey @giorat , is the time in the payload? You can grab the whole payload for every message with $bot->getMessage()->getPayload().

Thank you so much @christophrumpel 👍 but this could be useful for anyone, should add it to the documentation of botman because searching payload on the documentation doesn't show anything 😢

Yeah you're right. I will add it 👍