lukefx / hubot-telegram

Hubot adapter for Telegram
MIT License
160 stars 42 forks source link

Read the response text of a message #68

Open wgcv opened 5 years ago

wgcv commented 5 years ago

I want to read the text of the response of the text of a message, for example:

screen shot 2019-01-05 at 10 54 38 pm
p1: hi, what is your name?
p2 replay:  p1 "hi, what is your name?"
                Gustavo

And I need to get "hi, what is your name?" I think that the best way is to add a property to message

  constructor (user, text, id, reponseText = null) {
    super(user)
    this.text = text
    this.id = id
+   this.reponseText = reponseText
  }

Someone have a better idea?

wgcv commented 5 years ago

Code Hubot: https://github.com/Pepperloop/hubot Hubot Telegram Adapter: https://github.com/Pepperloop/hubot-telegram