mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2024-11-10 19:46:36 +03:00
Improve method signatures in the docs
This commit is contained in:
parent
dab237e758
commit
67183ff9e8
|
@ -106,7 +106,8 @@ def skip(app, what, name, obj, would_skip, options):
|
|||
'__init__',
|
||||
'__abstractmethods__',
|
||||
'__module__',
|
||||
'__doc__'
|
||||
'__doc__',
|
||||
'__dict__'
|
||||
}
|
||||
|
||||
return would_skip
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import asyncio
|
||||
import inspect
|
||||
import itertools
|
||||
import string
|
||||
import typing
|
||||
|
@ -447,6 +448,8 @@ class ChatMethods:
|
|||
"""
|
||||
return await self.iter_participants(*args, **kwargs).collect()
|
||||
|
||||
get_participants.__signature__ = inspect.signature(iter_participants)
|
||||
|
||||
def iter_admin_log(
|
||||
self: 'TelegramClient',
|
||||
entity: 'hints.EntityLike',
|
||||
|
@ -608,6 +611,8 @@ class ChatMethods:
|
|||
"""
|
||||
return await self.iter_admin_log(*args, **kwargs).collect()
|
||||
|
||||
get_admin_log.__signature__ = inspect.signature(iter_admin_log)
|
||||
|
||||
def iter_profile_photos(
|
||||
self: 'TelegramClient',
|
||||
entity: 'hints.EntityLike',
|
||||
|
@ -673,6 +678,8 @@ class ChatMethods:
|
|||
"""
|
||||
return await self.iter_profile_photos(*args, **kwargs).collect()
|
||||
|
||||
get_profile_photos.__signature__ = inspect.signature(iter_profile_photos)
|
||||
|
||||
def action(
|
||||
self: 'TelegramClient',
|
||||
entity: 'hints.EntityLike',
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import asyncio
|
||||
import inspect
|
||||
import itertools
|
||||
import typing
|
||||
|
||||
|
@ -248,6 +249,8 @@ class DialogMethods:
|
|||
"""
|
||||
return await self.iter_dialogs(*args, **kwargs).collect()
|
||||
|
||||
get_dialogs.__signature__ = inspect.signature(iter_dialogs)
|
||||
|
||||
def iter_drafts(
|
||||
self: 'TelegramClient',
|
||||
entity: 'hints.EntitiesLike' = None
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
import inspect
|
||||
import itertools
|
||||
import typing
|
||||
|
||||
|
@ -520,6 +521,8 @@ class MessageMethods:
|
|||
|
||||
return await it.collect()
|
||||
|
||||
get_messages.__signature__ = inspect.signature(iter_messages)
|
||||
|
||||
# endregion
|
||||
|
||||
# region Message sending/editing/deleting
|
||||
|
|
Loading…
Reference in New Issue
Block a user