Nekmo / telegram-upload

Upload and download files from Telegram up to 4 GiB using your account
MIT License
1.05k stars 226 forks source link

Hello, I can't add two lines of text with a carriage return line feed when using the change title command. #229

Closed myh66 closed 10 months ago

myh66 commented 10 months ago
          There's a function to change the file name
image

I use: telegram-upload image.jpg --caption "caption #tags1 #tags2" effect: image The effect I'm looki ng for: image

Does this command add newlines?

Hi, 你好、

sorry, but I can't understand your message. Can you repeat your message with other words?对不起,我听不懂您的留言。您能用其他词语重复一下您的信息吗?

Thanks. 谢谢。

Originally posted by @myh66 in https://github.com/Nekmo/telegram-upload/issues/226#issuecomment-1736573445

Nekmo commented 10 months ago

Hi,

This is not a Telegram-upload issue, and depends on your terminal. Depending on your console this will be done differently or another.

For example in Bash this is done like this:

$ telegram-upload image.jpg --caption $'Message\nTest'

https://stackoverflow.com/questions/3005963/how-can-i-have-a-newline-in-a-string-in-sh

But in ZSH, Powershell or other terminals it will be different.

Regards,

myh66 commented 10 months ago

thanks,I'll give it a try.