Open z-afshar opened 6 years ago
sorry for giving no information. I used telegram-cli for my monitoring system (zabbix) to send alert to users. a couple of days ago the telegram-cli take too long time to send messages vi acript. so I deactivate telegram-cli session, and reregister it with -q at the end the telegram-cli registered successfully but unable to send message or get my contact list trying to send message gives me error: FAIL: 38: can not parse arg #1 I can send and receive messages with other sessions (telegram desktop/web) but telegram-cli session does not work anymore
I just did a few test and it works perfectly well, I did get this error:
FAIL: 38: can not parse arg #1
When I don't use the print_name, which in fact has no spaces, but instead underscores. If you use the --enable-msg-id --json
argument it returns all those details.
I am not sure how you have your script written, but with basic msg contact_name message
it is working well for me.
O yes there is one more thing, I have to add -W
like this:
cd /path/to/tg && bin/telegram-cli -W server.pub -e "msg contact_name message"
To wait for answer the dialog_list query before reading input. Hope this helps...
We need more information.