TelegramMessenger / TelegramMessenger/Telegram-iOS
Markdown Links not clickable in a Media Gallery message
Nobody has claimed this yet.
- Dominant language
- Swift
- Stars
- 9k
- Forks
- 2.9k
- PR merge metrics
- No merged PRs in 30d
Description
Checklist
- I am reporting an issue in existing functionality that does not work as intended
- I've searched for existing GitHub issues
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
- You need to have a bot
- Submit CURL request, make sure to replace vars
- 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](https://www.example.com)",
"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](https://www.example.com)",
"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
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the issue with the provided curl request on an iPhone, comparing a multi-item media gallery with a single-media message. Trace the iOS handling of MarkdownV2 captions and media-gallery messages; done means inline links in each gallery caption are clickable and open after confirmation.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- swift
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100