title: GAS-built telegram bot: catching replies to bot
body: <p>I wrote an bot on GAS to read from / write to a google sheet from telegram. I use the webhook method. I can address the bot with <code>/read &lt;args&gt;</code> and <code>/write &lt;args&gt;</code>. However, the less tech-savvy are not able to understand the principle of arguments...
  So I want to make a conversational bot, like botfather. eg, if <code>/read</code> or <code>/write</code> are sent, then the bot ask in pm for the arguments, one by one.
  The &quot;reply in PM&quot; part is easy, but I don't see how I can catch replies for arguments?</p>
  <p>As far as I understand, the function <code>doPost</code> is called each time a command is sent to the bot which poses issues of interactivity, and requiring a slash-something command to run the script instead of a plain text reply (and as the GAS data is volatile, the ugly work-around of storing a variable to know the bot should do the 2nd action is impossible too).</p>
  <ul>
  <li>Is it feasible with webhook method?</li>
  <li>Should I switch to polling / getUpdates method? I'm guessing it could work that way,  with a time-out to exit the script in case of no reply, but I'm also guessing the PM chat should be set to 'no privacy' mode. or maybe it is intrinsic to the bot?</li>
  </ul>
  <p>Any help appreciated!</p>