Skip to content
This repository was archived by the owner on Dec 23, 2024. It is now read-only.

Add message.link attribute#442

Merged
delivrance merged 3 commits intopyrogram:developfrom
ColinShark:message-link
Jul 27, 2020
Merged

Add message.link attribute#442
delivrance merged 3 commits intopyrogram:developfrom
ColinShark:message-link

Conversation

@ColinShark
Copy link
Copy Markdown
Contributor

@ColinShark ColinShark commented Jul 21, 2020

Adds the functionality to access the message link.
Either as t.me/c/ or t.me/username format.

ColinShark and others added 3 commits July 21, 2020 02:46
Adds the functionality to access the message link.
Either as `t.me/c/` or `t.me/username` format.
Property now has a returned type, list is a tuple and
we use `utils.get_channel_id` to not rely on str.replace
- Prepend https:// like official clients do
- Use .format()
@delivrance delivrance merged commit c5b7a36 into pyrogram:develop Jul 27, 2020
@ColinShark ColinShark deleted the message-link branch July 27, 2020 23:03
@pyrogram pyrogram deleted a comment Aug 3, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants