botgram / shell-bot

:robot: Telegram bot that executes commands and sends the live output
GNU General Public License v3.0
787 stars 493 forks source link

Multiline input doesn't work for /run | /r #32

Open Akianonymus opened 4 years ago

Akianonymus commented 4 years ago

For example:

/run echo 1
echo 2

Outputs nothing

Expected output:

1
2
hrvstr commented 4 years ago

/r echo 1 && echo 2?

Akianonymus commented 4 years ago

@hrvstr Well, obviously that will work, and use semi colons will also work, but the issue title says 'multiline'

hrvstr commented 4 years ago

Okay, I just wanted to point out options to get the desired results.

xinxin8816 commented 3 years ago

/r echo 1 $'\n' 2 $'\n' 3 $'\n' 4 ...

That's my solution.