pyrofork/pyrogram/client
ColinShark c5b7a365af
Add message.link attribute/property (#442)
* Add message.link attribute

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

* Change message.link logic

Property now has a returned type, list is a tuple and
we use `utils.get_channel_id` to not rely on str.replace

* Update message.py

- Prepend https:// like official clients do
- Use .format()

Co-authored-by: Dan <14043624+delivrance@users.noreply.github.com>
2020-07-27 15:30:49 +02:00
..
ext Add Mention link 2020-07-08 23:37:24 +02:00
filters Some fixes and speed improvments (#439) 2020-07-12 06:43:30 +02:00
handlers Add support for ChosenInlineResult objects 2020-04-03 17:15:28 +02:00
methods Add file_name parameter in edit_message_media method (#440) 2020-07-27 15:21:42 +02:00
parser Strip whitespace characters from the end of the message 2020-05-28 15:43:42 +02:00
storage Update Copyright 2020-03-21 15:43:32 +01:00
types Add message.link attribute/property (#442) 2020-07-27 15:30:49 +02:00
__init__.py Update Copyright 2020-03-21 15:43:32 +01:00
client.py Simplify None checks for file uploads 2020-07-27 15:06:18 +02:00