TelegramMessenger / Telegram-iOS

Telegram-iOS
5.94k stars 1.58k forks source link

Markdown Links not clickable in a Media Gallery message #298

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. The same messages are working properly in Android clients (web is not working either). Interestingly, if the media gallery has a single media, seems like all works fine.

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/p2Z8DyB/Link-issue.jpg

### Environment
**Device:** `iPhone 7`

**iOS version**: `13.3.1`

**App version:** `6.1.2`
poiromaniax commented 3 years ago

I am a part of an operational group that sends Markdown links and I have the same issue. Android devices can open the links perfectly but not iOS

Although I am able to open the links through Telegram desktop

Environment

Device:iPhone 8 Plus

iOS version: 14.4

App version: 7.4.2