mirror of
https://github.com/pyrogram/pyrogram
synced 2025-08-28 21:07:59 +00:00
Fix messed up method names
This commit is contained in:
parent
ec1cd15094
commit
da697aec13
@ -239,18 +239,18 @@ def pyrogram_api():
|
|||||||
""",
|
""",
|
||||||
invite_links="""
|
invite_links="""
|
||||||
Invite Links
|
Invite Links
|
||||||
|
get_chat_invite_link
|
||||||
export_chat_invite_link
|
export_chat_invite_link
|
||||||
create_chat_invite_link
|
create_chat_invite_link
|
||||||
edit_chat_invite_link
|
edit_chat_invite_link
|
||||||
revoke_chat_invite_link
|
revoke_chat_invite_link
|
||||||
delete_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
|
||||||
get_chat_invite_link_members_count
|
get_chat_invite_link_members_count
|
||||||
get_chat_invite_links
|
get_chat_admin_invite_links
|
||||||
get_chat_invite_links_count
|
get_chat_admin_invite_links_count
|
||||||
get_chat_admins_with_invite_links
|
get_chat_admins_with_invite_links
|
||||||
|
delete_chat_admin_invite_links
|
||||||
""",
|
""",
|
||||||
contacts="""
|
contacts="""
|
||||||
Contacts
|
Contacts
|
||||||
|
@ -18,7 +18,7 @@
|
|||||||
|
|
||||||
|
|
||||||
from .create_chat_invite_link import CreateChatInviteLink
|
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 .delete_chat_invite_link import DeleteChatInviteLink
|
||||||
from .edit_chat_invite_link import EditChatInviteLink
|
from .edit_chat_invite_link import EditChatInviteLink
|
||||||
from .export_chat_invite_link import ExportChatInviteLink
|
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 import GetChatInviteLink
|
||||||
from .get_chat_invite_link_members import GetChatInviteLinkMembers
|
from .get_chat_invite_link_members import GetChatInviteLinkMembers
|
||||||
from .get_chat_invite_link_members_count import GetChatInviteLinkMembersCount
|
from .get_chat_invite_link_members_count import GetChatInviteLinkMembersCount
|
||||||
from .get_chat_invite_links import GetChatInviteLinks
|
from .get_chat_admin_invite_links import GetChatAdminInviteLinks
|
||||||
from .get_chat_invite_links_count import GetChatInviteLinksCount
|
from .get_chat_admin_invite_links_count import GetChatAdminInviteLinksCount
|
||||||
from .revoke_chat_invite_link import RevokeChatInviteLink
|
from .revoke_chat_invite_link import RevokeChatInviteLink
|
||||||
|
|
||||||
|
|
||||||
@ -38,10 +38,10 @@ class InviteLinks(
|
|||||||
CreateChatInviteLink,
|
CreateChatInviteLink,
|
||||||
GetChatInviteLinkMembers,
|
GetChatInviteLinkMembers,
|
||||||
GetChatInviteLinkMembersCount,
|
GetChatInviteLinkMembersCount,
|
||||||
GetChatInviteLinks,
|
GetChatAdminInviteLinks,
|
||||||
ExportChatInviteLink,
|
ExportChatInviteLink,
|
||||||
DeleteAllChatInviteLinks,
|
DeleteChatAdminInviteLinks,
|
||||||
GetChatInviteLinksCount,
|
GetChatAdminInviteLinksCount,
|
||||||
GetChatAdminsWithInviteLinks,
|
GetChatAdminsWithInviteLinks,
|
||||||
GetChatInviteLink
|
GetChatInviteLink
|
||||||
):
|
):
|
||||||
|
@ -22,8 +22,8 @@ from pyrogram import raw
|
|||||||
from pyrogram.scaffold import Scaffold
|
from pyrogram.scaffold import Scaffold
|
||||||
|
|
||||||
|
|
||||||
class DeleteAllChatInviteLinks(Scaffold):
|
class DeleteChatAdminInviteLinks(Scaffold):
|
||||||
async def delete_all_chat_invite_links(
|
async def delete_chat_admin_invite_links(
|
||||||
self,
|
self,
|
||||||
chat_id: Union[int, str],
|
chat_id: Union[int, str],
|
||||||
admin_id: Union[int, str],
|
admin_id: Union[int, str],
|
@ -23,8 +23,8 @@ from pyrogram import types
|
|||||||
from pyrogram.scaffold import Scaffold
|
from pyrogram.scaffold import Scaffold
|
||||||
|
|
||||||
|
|
||||||
class GetChatInviteLinks(Scaffold):
|
class GetChatAdminInviteLinks(Scaffold):
|
||||||
async def get_chat_invite_links(
|
async def get_chat_admin_invite_links(
|
||||||
self,
|
self,
|
||||||
chat_id: Union[int, str],
|
chat_id: Union[int, str],
|
||||||
admin_id: Union[int, str],
|
admin_id: Union[int, str],
|
@ -22,8 +22,8 @@ from pyrogram import raw
|
|||||||
from pyrogram.scaffold import Scaffold
|
from pyrogram.scaffold import Scaffold
|
||||||
|
|
||||||
|
|
||||||
class GetChatInviteLinksCount(Scaffold):
|
class GetChatAdminInviteLinksCount(Scaffold):
|
||||||
async def get_chat_invite_links_count(
|
async def get_chat_admin_invite_links_count(
|
||||||
self,
|
self,
|
||||||
chat_id: Union[int, str],
|
chat_id: Union[int, str],
|
||||||
admin_id: Union[int, str],
|
admin_id: Union[int, str],
|
Loading…
x
Reference in New Issue
Block a user