topkecleon / telegram-bot-bash

Telegram bot written in bash
Other
431 stars 123 forks source link

Ineractive scripts not working as expected #110

Closed jesusvpct closed 4 years ago

jesusvpct commented 4 years ago

I can't get to work the interactive question sample. It sends all the text but it's not waiting to get any response from the user. What I'm missing? Thanks.

Screenshot_20191116_213743

gnadelwartz commented 4 years ago

Hi, do you use the latest Version?

I'll test it ...

massive91 commented 4 years ago

I confirm that, on the latest version there is a bug with interactive chat

gnadelwartz commented 4 years ago

Has anyone of you found working version for Interactive?

gnadelwartz commented 4 years ago

IMHO the problem with interactive was that the pipe disappeared and no user input was sent to script. I reworked start_proc, this will hopefully fix this also https://github.com/topkecleon/telegram-bot-bash/commit/3f85134d2fb9b4c3583e9efae8c521d3821cbfa6

gnadelwartz commented 4 years ago

interactive scripts are working again, but you must read user input from $3 instead from stdin, see https://github.com/topkecleon/telegram-bot-bash/blob/develop/doc/3_advanced.md#interactive-chats