MTPyroger/pyrogram
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
..
connection Always run crypto-related functions in the dedicated thread 2021-01-02 18:45:43 +01:00
crypto Update copyright notice 2021-01-01 22:58:48 +01:00
errors Update copyright notice 2021-01-01 22:58:48 +01:00
handlers Fix some index out of range errors 2021-02-27 19:02:52 +01:00
methods Add support for the improved Invite Links (#639) 2021-03-17 12:40:36 +01:00
parser Fix for strikethrough unparsing in markdown (#627) 2021-03-14 12:43:12 +01:00
raw Fix wrong excepted error 2021-01-10 16:46:16 +01:00
session Always run crypto-related functions in the dedicated thread 2021-01-02 18:45:43 +01:00
storage Update copyright notice 2021-01-01 22:58:48 +01:00
types Add support for the improved Invite Links (#639) 2021-03-17 12:40:36 +01:00
__init__.py Update Pyrogram to v1.1.13 2021-01-18 07:31:06 +01:00
client.py Fix some index out of range errors 2021-02-27 19:02:52 +01:00
dispatcher.py Update copyright notice 2021-01-01 22:58:48 +01:00
emoji.py Update copyright notice 2021-01-01 22:58:48 +01:00
file_id.py Update copyright notice 2021-01-01 22:58:48 +01:00
filters.py Fix filters.create documentation (#623) 2021-03-14 12:44:13 +01:00
mime_types.py Update copyright notice 2021-01-01 22:58:48 +01:00
scaffold.py Add support for the improved Invite Links (#639) 2021-03-17 12:40:36 +01:00
sync.py Update copyright notice 2021-01-01 22:58:48 +01:00
syncer.py Update copyright notice 2021-01-01 22:58:48 +01:00
utils.py Fix enum items showing ids instead of names 2021-02-12 12:36:32 +01:00