Skip to content

Conversation

@harshil21
Copy link
Member

@harshil21 harshil21 commented Aug 21, 2020

Doc fixes:

  • Doc fixes for most telegram classes. Also cross checked docs with official docs, except for some methods in bot.py.

  • Doc fixes for telegram.ext classes too.

  • Doc fixes for inline related classes still left (will do soon).

  • Doc fixes for payment, passport and game classes/files.

Also changed all ``True/False/None`` to :obj:`True/False/None` as requested.

forgot the hard wrap is at 99 chars, not 100!
fixed a few spelling mistakes too.
Copy link
Member

@Bibo-Joshi Bibo-Joshi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi. Thanks for the PR. You found quite a number of spelling mistakes :D
I left some comments for you.

True, False, None are now rendered with ``bool`` wherever they weren't in telegram and telegram.ext classes.
As usual, docs were cross-checked with official tg api docs.
As usual, docs were cross-checked with official tg api docs.
Mostly just added hyperlinks. And fixed message length doc.

As usual, docs were cross-checked with official tg api docs.
Didn't bother changing too much since this seems to be a custom implementation.
As usual, cross-checked with official bot api docs.
@harshil21
Copy link
Member Author

Okay, I've covered all telegram files except for those under utils. Done now, unless there's more changes requested.

@harshil21 harshil21 requested a review from Bibo-Joshi August 22, 2020 04:15
Copy link
Member

@Bibo-Joshi Bibo-Joshi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the update! I left a bit more of nitpicking. Also if (and only if!) changing True to :obj:`True` (same for False and None) is realatively quickly done for you, that would be the cherry on top ;)

@harshil21
Copy link
Member Author

Thanks for the update! I left a bit more of nitpicking. Also if (and only if!) changing True to :obj:`True` (same for False and None) is relatively quickly done for you, that would be the cherry on top ;)

Yea, I can do that. The main reasons I chose ``True`` over :obj:`True` is cause it gave more contrast (rendered in red rather than black) and that most telegram.Bot methods also had ``True``. So I thought that was the way to do it.

I'll switch it to :obj:`True/False/None` project wide then.

@harshil21 harshil21 requested a review from Bibo-Joshi August 24, 2020 00:24
@Bibo-Joshi Bibo-Joshi merged commit 078ac63 into python-telegram-bot:doc-fixes Aug 24, 2020
@Bibo-Joshi
Copy link
Member

Thank you for your effort!

@harshil21 harshil21 deleted the doc-fixes branch August 24, 2020 17:55
@github-actions github-actions bot locked and limited conversation to collaborators Aug 26, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants