Fix messed up method names

This commit is contained in:
Dan 2021-03-21 22:39:59 +01:00
parent ec1cd15094
commit da697aec13
5 changed files with 17 additions and 17 deletions

View File

@ -239,18 +239,18 @@ def pyrogram_api():
""",
invite_links="""
Invite Links
get_chat_invite_link
export_chat_invite_link
create_chat_invite_link
edit_chat_invite_link
revoke_chat_invite_link
delete_chat_invite_link
delete_all_chat_invite_links
get_chat_invite_link
get_chat_invite_link_members
get_chat_invite_link_members_count
get_chat_invite_links
get_chat_invite_links_count
get_chat_admin_invite_links
get_chat_admin_invite_links_count
get_chat_admins_with_invite_links
delete_chat_admin_invite_links
""",
contacts="""
Contacts

View File

@ -18,7 +18,7 @@
from .create_chat_invite_link import CreateChatInviteLink
from .delete_all_chat_invite_links import DeleteAllChatInviteLinks
from .delete_chat_admin_invite_links import DeleteChatAdminInviteLinks
from .delete_chat_invite_link import DeleteChatInviteLink
from .edit_chat_invite_link import EditChatInviteLink
from .export_chat_invite_link import ExportChatInviteLink
@ -26,8 +26,8 @@ from .get_chat_admins_with_invite_links import GetChatAdminsWithInviteLinks
from .get_chat_invite_link import GetChatInviteLink
from .get_chat_invite_link_members import GetChatInviteLinkMembers
from .get_chat_invite_link_members_count import GetChatInviteLinkMembersCount
from .get_chat_invite_links import GetChatInviteLinks
from .get_chat_invite_links_count import GetChatInviteLinksCount
from .get_chat_admin_invite_links import GetChatAdminInviteLinks
from .get_chat_admin_invite_links_count import GetChatAdminInviteLinksCount
from .revoke_chat_invite_link import RevokeChatInviteLink
@ -38,10 +38,10 @@ class InviteLinks(
CreateChatInviteLink,
GetChatInviteLinkMembers,
GetChatInviteLinkMembersCount,
GetChatInviteLinks,
GetChatAdminInviteLinks,
ExportChatInviteLink,
DeleteAllChatInviteLinks,
GetChatInviteLinksCount,
DeleteChatAdminInviteLinks,
GetChatAdminInviteLinksCount,
GetChatAdminsWithInviteLinks,
GetChatInviteLink
):

View File

@ -22,8 +22,8 @@ from pyrogram import raw
from pyrogram.scaffold import Scaffold
class DeleteAllChatInviteLinks(Scaffold):
async def delete_all_chat_invite_links(
class DeleteChatAdminInviteLinks(Scaffold):
async def delete_chat_admin_invite_links(
self,
chat_id: Union[int, str],
admin_id: Union[int, str],

View File

@ -23,8 +23,8 @@ from pyrogram import types
from pyrogram.scaffold import Scaffold
class GetChatInviteLinks(Scaffold):
async def get_chat_invite_links(
class GetChatAdminInviteLinks(Scaffold):
async def get_chat_admin_invite_links(
self,
chat_id: Union[int, str],
admin_id: Union[int, str],

View File

@ -22,8 +22,8 @@ from pyrogram import raw
from pyrogram.scaffold import Scaffold
class GetChatInviteLinksCount(Scaffold):
async def get_chat_invite_links_count(
class GetChatAdminInviteLinksCount(Scaffold):
async def get_chat_admin_invite_links_count(
self,
chat_id: Union[int, str],
admin_id: Union[int, str],