zhukov / webogram

Telegram web application, GPL v3
https://web.telegram.org
GNU General Public License v3.0
7.95k stars 2.36k forks source link

Markdown links not rendered properly in a media gallery captions #1976

Open rukavina opened 4 years ago

rukavina commented 4 years ago

Checklist

Description

When sending a media gallery message via bot API with markdownv2 captions, links are not clickable and not rendered as links. The same messages are working properly in Android clients (ios is not working either).

Expected Behavior

Markdown inline links should be clickable and opening URL after a confirmation.

Actual Behavior

Links are not clickable.

Steps to Reproduce

  1. You need to have a bot
  2. Submit CURL request, make sure to replace vars
  3. CURL
    
    curl -X POST "https://api.telegram.org/bot{BOT_TOKEN}/sendMediaGroup" \
    -H "accept: application/json" \
    -H "Content-Type: application/json" \
    -d @- << EOF

{ "media": [ { "type": "photo", "caption": "This is markdown text1 with a link Link 1", "media": "https://www.alphashooters.com/wp-content/uploads/2019/01/sony-sel85f18-gsd-puppy-DSC00116-1300px.jpg", "parse_mode": "MarkdownV2" }, { "type": "photo", "caption": "This is markdown text2 with a link Link 2", "media": "https://www.cameraegg.org/wp-content/uploads/2015/06/canon-powershot-g3-x-sample-images-1.jpg", "parse_mode": "MarkdownV2" } ], "chat_id": "{RECEIVER_ID}" } EOF



### Screenshots and Videos 
https://i.ibb.co/bBxkwCX/telegram-link-issue.jpg

### Environment
**Browser:** `Chrome 81`
stha commented 4 years ago

👍

In general, no markdown seems to work in media captions at all. Its not limited to links.

mohsen121314 commented 4 years ago

tanx

در سه‌شنبه ۴ اوت ۲۰۲۰ در ۱۲:۰۲ Stefan notifications@github.com نوشت:

👍

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/zhukov/webogram/issues/1976#issuecomment-668431959, or unsubscribe https://github.com/notifications/unsubscribe-auth/AO6MJ3TPNR37KLJKDTAXS6TR662QLANCNFSM4NH2YIFA .