-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Description
The docs of Telegram classes are currently written such that the docstring of the arguments are more informative than the docstring of the respective attributes. E.g. for Chat.has_private_forwards
, "Returned only in get_chat()
" is only present in the argument docstrings, not in the attribute docstring. For Message.text
, the length limitation is only documented for the argument, not the attribute.
This logic makes sense for classes that are to be instantiated by the user (like BotCommand
or InputMedia*
), but for classes that are rarely instantiated by the user like Chat
and Message
this makes it sometimes hard to find valuable information.
I suggest to revisit the documentation of the Telegram classes and either unify the docstrings of args & attributes or at least check which information would be worth adding to the attributes as well.
Contributions in this direction are very welcome! They also don't have to cover all Telegram classes at once - instead this can be done step by step. If you want to cover (parts of) this, please leave a comment below, so that we can avoid duplicate work.
PRs for this should be made against the doc-fixes
branch. Please also check out the contribution guide, especially the part on how to build the documentation locally.
Classes are listed below for convenience.