0

I tried to get response time of user replay from the telegram bot API, but it is not working. update.message response time suggests the better way to get time.

lebelinoz
  • 4,890
  • 10
  • 33
  • 56
isaacalan
  • 73
  • 1
  • 8

1 Answers1

1

There is only a date attribute in the message object in Telegram's Bot API. You can use update.effective_message.date to retrieve it, it is internally turned to a datetime object by the python-telegram-bot library.

jeffffc
  • 772
  • 4
  • 13
  • Thank you working perfectly result **2017-09-19 14:05:04** will it returns only second as integer time object – isaacalan Sep 19 '17 at 08:37