vysheng / tg

telegram-cli
GNU General Public License v2.0
6.5k stars 1.54k forks source link

Is it possible to send multiple messages in command mode? #1637

Closed cs-usst closed 4 years ago

cs-usst commented 4 years ago

I want to send different messages to different user in command mode, is it possible to do that using only one line of code? for example I want to combine these three commands into one:

telegram-cli -W -e "msg User1 1"
telegram-cli -W -e "msg User1 2"
telegram-cli -W -e "msg User2 3"
Paulchen232 commented 4 years ago

You can do it with a real line break: telegram-cli -W -e 'msg User1 1 msg User1 2 msg User2 3'

cs-usst commented 4 years ago

You can do it with a real line break: telegram-cli -W -e 'msg User1 1 msg User1 2 msg User2 3'

It works perfectly. Thanks