MTPyroger/pyrogram/methods/messages
ColinShark ee5f39374c
Add support for the improved Invite Links (#639)
* Add new invite link export methods

* Implement higher-level Invite type

* Update Docstrings and rename Invite

* Docstrings are now more consistent with other methods
* Invite is now InviteLink to be less arbitrary

* Add method to get exported links

* `get_exported_chat_invites`
* prepare `__init__` for the other InvitesV2 methods

* Update returned type

`str` -> `types.InviteLink`

* Add method to edit invite link

Since editing the link returns a slightly different type to exporting,
I have made a small "hack" in the InviteLink type.

* Move Invites V2 methods to their own namespace

* Add get_chat_invite_importers and InviteImporter

Method to fetch information on users that joined via a specific link and
the type to display the information

* Add methods to delete revoked links

* delete_exported_chat_invite to delete a single revoked link
* delete_revoked_exported_chat_invites to delete all revoked links of a
specified admin

* Renaming Invite(s) to InviteLink(s)

As per @delivrance's request
https://github.com/pyrogram/pyrogram/pull/630#issuecomment-791893890

Also sorted invites' __init__ alphabetically

* Add Method to get admins with exported invite link

Documentation needs an update and the respective type needs to be
created. I cannot test this, as I lack Creator permissions.

* Invite Links overhaul

* Rearrange code

Co-authored-by: Dan <14043624+delivrance@users.noreply.github.com>
2021-03-17 12:40:36 +01:00
..
__init__.py Update copyright notice 2021-01-01 22:58:48 +01:00
copy_message.py Fix small typo in copy_message()'s examples (#588) 2021-01-29 12:47:52 +01:00
delete_messages.py Update copyright notice 2021-01-01 22:58:48 +01:00
download_media.py Update copyright notice 2021-01-01 22:58:48 +01:00
edit_inline_caption.py Update copyright notice 2021-01-01 22:58:48 +01:00
edit_inline_media.py Add support for the improved Invite Links (#639) 2021-03-17 12:40:36 +01:00
edit_inline_reply_markup.py Update copyright notice 2021-01-01 22:58:48 +01:00
edit_inline_text.py Update copyright notice 2021-01-01 22:58:48 +01:00
edit_message_caption.py Update copyright notice 2021-01-01 22:58:48 +01:00
edit_message_media.py Fix captions not being preserved when editing media 2021-01-08 09:02:29 +01:00
edit_message_reply_markup.py Update copyright notice 2021-01-01 22:58:48 +01:00
edit_message_text.py Update copyright notice 2021-01-01 22:58:48 +01:00
forward_messages.py Fix wrong emphasize lines 2021-01-18 07:29:51 +01:00
get_history_count.py Update copyright notice 2021-01-01 22:58:48 +01:00
get_history.py Update copyright notice 2021-01-01 22:58:48 +01:00
get_media_group.py Add support for the improved Invite Links (#639) 2021-03-17 12:40:36 +01:00
get_messages.py Update copyright notice 2021-01-01 22:58:48 +01:00
inline_session.py Fix DC sessions for inline message edits (#585) 2021-01-10 15:59:27 +01:00
iter_history.py Update copyright notice 2021-01-01 22:58:48 +01:00
read_history.py Update copyright notice 2021-01-01 22:58:48 +01:00
retract_vote.py Update copyright notice 2021-01-01 22:58:48 +01:00
search_global.py Fix issues with global_search(): add the filter parameter (#589) 2021-01-14 21:49:51 +01:00
search_messages.py Update offset by the amount of messages retrieved 2021-03-14 12:30:57 +01:00
send_animation.py Update copyright notice 2021-01-01 22:58:48 +01:00
send_audio.py Update copyright notice 2021-01-01 22:58:48 +01:00
send_cached_media.py Update copyright notice 2021-01-01 22:58:48 +01:00
send_chat_action.py Update copyright notice 2021-01-01 22:58:48 +01:00
send_contact.py Update copyright notice 2021-01-01 22:58:48 +01:00
send_dice.py Update copyright notice 2021-01-01 22:58:48 +01:00
send_document.py Update copyright notice 2021-01-01 22:58:48 +01:00
send_location.py Update copyright notice 2021-01-01 22:58:48 +01:00
send_media_group.py Fix captions not being preserved when editing media 2021-01-08 09:02:29 +01:00
send_message.py Update copyright notice 2021-01-01 22:58:48 +01:00
send_photo.py Update copyright notice 2021-01-01 22:58:48 +01:00
send_poll.py Update copyright notice 2021-01-01 22:58:48 +01:00
send_sticker.py Update copyright notice 2021-01-01 22:58:48 +01:00
send_venue.py Update copyright notice 2021-01-01 22:58:48 +01:00
send_video_note.py Update copyright notice 2021-01-01 22:58:48 +01:00
send_video.py Update copyright notice 2021-01-01 22:58:48 +01:00
send_voice.py Update copyright notice 2021-01-01 22:58:48 +01:00
stop_poll.py Update copyright notice 2021-01-01 22:58:48 +01:00
vote_poll.py Update copyright notice 2021-01-01 22:58:48 +01:00