diff --git a/readthedocs/conf.py b/readthedocs/conf.py index dea1738c..d550bdfc 100644 --- a/readthedocs/conf.py +++ b/readthedocs/conf.py @@ -106,7 +106,8 @@ def skip(app, what, name, obj, would_skip, options): '__init__', '__abstractmethods__', '__module__', - '__doc__' + '__doc__', + '__dict__' } return would_skip diff --git a/telethon/client/chats.py b/telethon/client/chats.py index 26fe5818..d5c6407d 100644 --- a/telethon/client/chats.py +++ b/telethon/client/chats.py @@ -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', diff --git a/telethon/client/dialogs.py b/telethon/client/dialogs.py index d7aa5d16..24436dfe 100644 --- a/telethon/client/dialogs.py +++ b/telethon/client/dialogs.py @@ -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 diff --git a/telethon/client/messages.py b/telethon/client/messages.py index fa3d8633..25bd4e6e 100644 --- a/telethon/client/messages.py +++ b/telethon/client/messages.py @@ -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