These are chat archives for irazasyed/telegram-bot-sdk

3rd
Dec 2015
Jonathan
@jonnywilliamson
Dec 03 2015 11:53
@antoniomadonna ok, I understand that. I have some time this weekend, going to see if I can create some more tests.
AxxiD
@AxxiD
Dec 03 2015 19:22
Hey guys.
I currently work on a new bot using this SDK. My problem though is that I don't know how to work with the keyboard. How do II get to know what the user pressed on? Do I need to saveeverything in an DB?
Syed Irfaq R.
@irazasyed
Dec 03 2015 19:31
@AxxiD Hey! Did you mean the custom keyboard? When the user responds by pressing one of the custom buttons, It’ll be sent as a normal message which you can then save it into your database and take appropriate actions & respond the user.
Normal message with the custom keyboard button value.
AxxiD
@AxxiD
Dec 03 2015 19:38
@irazasyed yes I meant the custum keyboards. So there is no 'easy' way to create a chain of questions and answers given through a custom keyboard? In order to do so I would need to save e.g. the message ID my bot sent the keyboard in a database and when the user answers to this message ID (which needs to be looked up every time I get an answer) I can continue with whatever I wanted to do with his keyboard input. Correct?
Syed Irfaq R.
@irazasyed
Dec 03 2015 22:24
@AxxiD Correct! Currently we don’t have any implementation to support Q/A interaction with the user/bot. So you have to take care of that manually.