vysheng / tgl

telegram library
GNU Lesser General Public License v2.1
198 stars 223 forks source link

Command line msg command with secure chats #113

Closed danielberlin closed 8 years ago

danielberlin commented 8 years ago

Hi send out messages to secure chats from command line via:

telegram-cli -W -e msg '!_user@123456 myMessage' -D

However, since 1.3.3, this doesn't work anymore. Output of this command is the same as with previous versions, but no message arrives.

> All done. Exit
halt

It seems to be the quotation is not understand anymore, so I did: telegram-cli -W -e msg !_user@123456 myMessage -D – but bash doesn't like the exclamation mark and escaping it didn't help.

Can you help me with correctly calling this command? It would help if secure chats wouldn't have an exclamation mark in the user/chat name. Is there any other solution? Thanks.

danielberlin commented 8 years ago

OK, apparently secret chat username syntax secretly changed to !_user_123456 omitting the @ now.