Skip to content

WIP: add option to parse link for message number as jump-to-target [help needed]

Daniel Frost requested to merge Danfro/teleports:linktomessage into ubports/xenial

When a link is posted in Teleports, currently after clicking that, the corresponding chat is opened at the very bottom. This MR tries to add the functionality to jump to the specific linked message.

What works:

Parsing the link and extracting the message number.

What does not work: replacing the Telegram message number with the internal Teleports message number.

From what I understood, Teleports uses an 11 digit long internal message number system, like this: 19994247168. Telegram links do use an 6 digit long number. Somehow those two need to be matched. But I don't know how/if that can be done.

With that part I do need help. I currently am not able to solve this by myself.

Merge request reports