2

I need send to telegram long text with music/video/Doc. How can send long text with video/music/doc using bot? When upload file to server, telegram send me file_id and file Describe; how to attach this to my long text ?

user298025
  • 21
  • 1
  • 3

3 Answers3

1

You can't attach more than 200 chars to media caption, you can only link to other text, but it looks not pretty. :(

Try post it to your public channel with t.me/Chan/ID link, or post to Telegraph.

BTW, you can suggest it to @BotSupport, they may consider to change this limit.

Sean Wei
  • 7,433
  • 1
  • 19
  • 39
1

You can use telegram web-version. In web-version there is no character limit and you don't need any bot. Many of these bots put image under the text.

0

Nowadays with Telegram bots you can send files with 0-1024 chars in caption Documentation is here

Though, If you have more than 1024 characters in your caption, you should get file's URL first. By your bot token and file_id https://api.telegram.org/file/bot<token>/<file_path> Then when you send message with sendMessage() method you should set your text with and URL like that: [...text => "<a href='your file's url'>​​​​​​​​​​​​​​​​​​​​​</a>".$text,...]

Akbarjon
  • 1
  • 1