instruction
stringclasses
100 values
code
stringlengths
78
193k
response
stringlengths
259
170k
file
stringlengths
59
203
Add concise docstrings to each method
# # A library that provides a Python interface to the Telegram Bot API # Copyright (C) 2015-2026 # Leandro Toledo de Souza <devs@python-telegram-bot.org> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser Public License as published by # the Free Softwa...
--- +++ @@ -53,6 +53,10 @@ def _is_inherited_method(cls: type, method_name: str) -> bool: + """Checks if a method is inherited from a parent class. + Inheritance is not considered if the parent class is private. + Recurses through all direcot or indirect parent classes. + """ # The [1:] slice is us...
https://raw.githubusercontent.com/python-telegram-bot/python-telegram-bot/HEAD/docs/auxil/admonition_inserter.py
Add concise docstrings to each method
#!/usr/bin/env python # # A library that provides a Python interface to the Telegram Bot API # Copyright (C) 2015-2026 # Leandro Toledo de Souza <devs@python-telegram-bot.org> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser Public License as published by #...
--- +++ @@ -16,12 +16,163 @@ # # You should have received a copy of the GNU Lesser Public License # along with this program. If not, see [http://www.gnu.org/licenses/]. +"""This module contains the class which represents a Telegram ChatAdministratorRights.""" from telegram._telegramobject import TelegramObject f...
https://raw.githubusercontent.com/python-telegram-bot/python-telegram-bot/HEAD/src/telegram/_chatadministratorrights.py
Write docstrings describing functionality
#!/usr/bin/env python # # A library that provides a Python interface to the Telegram Bot API # Copyright (C) 2015-2026 # Leandro Toledo de Souza <devs@python-telegram-bot.org> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser Public License as published by #...
--- +++ @@ -16,6 +16,7 @@ # # You should have received a copy of the GNU Lesser Public License # along with this program. If not, see [http://www.gnu.org/licenses/]. +"""This module contains the classes that represent Telegram ChatBoosts.""" import datetime as dtm from collections.abc import Sequence @@ -35,6 +3...
https://raw.githubusercontent.com/python-telegram-bot/python-telegram-bot/HEAD/src/telegram/_chatboost.py
Document all endpoints with docstrings
#!/usr/bin/env python # # A library that provides a Python interface to the Telegram Bot API # Copyright (C) 2015-2026 # Leandro Toledo de Souza <devs@python-telegram-bot.org> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser Public License as published by #...
--- +++ @@ -16,6 +16,7 @@ # # You should have received a copy of the GNU Lesser Public License # along with this program. If not, see [http://www.gnu.org/licenses/]. +"""Base class for Telegram InputMedia Objects.""" import datetime as dtm from collections.abc import Sequence @@ -45,6 +46,44 @@ class InputMe...
https://raw.githubusercontent.com/python-telegram-bot/python-telegram-bot/HEAD/src/telegram/_files/inputmedia.py
Add professional docstrings to my codebase
#!/usr/bin/env python # # A library that provides a Python interface to the Telegram Bot API # Copyright (C) 2015-2026 # Leandro Toledo de Souza <devs@python-telegram-bot.org> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser Public License as published by #...
--- +++ @@ -16,6 +16,7 @@ # # You should have received a copy of the GNU Lesser Public License # along with this program. If not, see [http://www.gnu.org/licenses/]. +"""This module contains an object that represents a Telegram File.""" import shutil import urllib.parse as urllib_parse @@ -34,6 +35,44 @@ cla...
https://raw.githubusercontent.com/python-telegram-bot/python-telegram-bot/HEAD/src/telegram/_files/file.py
Write docstrings for utility functions
#!/usr/bin/env python # # A library that provides a Python interface to the Telegram Bot API # Copyright (C) 2015-2026 # Leandro Toledo de Souza <devs@python-telegram-bot.org> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser Public License as published by #...
--- +++ @@ -16,6 +16,7 @@ # # You should have received a copy of the GNU Lesser Public License # along with this program. If not, see [http://www.gnu.org/licenses/]. +"""This module contains an object that represents a Telegram InputFile.""" import mimetypes from typing import IO @@ -29,6 +30,66 @@ class Inp...
https://raw.githubusercontent.com/python-telegram-bot/python-telegram-bot/HEAD/src/telegram/_files/inputfile.py
Generate docstrings for exported functions
#!/usr/bin/env python # # A library that provides a Python interface to the Telegram Bot API # Copyright (C) 2015-2026 # Leandro Toledo de Souza <devs@python-telegram-bot.org> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser Public License as published by #...
--- +++ @@ -16,6 +16,7 @@ # # You should have received a copy of the GNU Lesser Public License # along with this program. If not, see [http://www.gnu.org/licenses/]. +"""This module contains an object that represents a Telegram InputSticker.""" from collections.abc import Sequence from typing import TYPE_CHECKIN...
https://raw.githubusercontent.com/python-telegram-bot/python-telegram-bot/HEAD/src/telegram/_files/inputsticker.py
Generate helpful docstrings for debugging
#!/usr/bin/env python # # A library that provides a Python interface to the Telegram Bot API # Copyright (C) 2015-2026 # Leandro Toledo de Souza <devs@python-telegram-bot.org> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser Public License as published by #...
--- +++ @@ -16,6 +16,7 @@ # # You should have received a copy of the GNU Lesser Public License # along with this program. If not, see [http://www.gnu.org/licenses/]. +"""This module contains an objects that represents a InputProfilePhoto and subclasses.""" import datetime as dtm from typing import TYPE_CHECKING ...
https://raw.githubusercontent.com/python-telegram-bot/python-telegram-bot/HEAD/src/telegram/_files/inputprofilephoto.py
Create docstrings for API functions
#!/usr/bin/env python # # A library that provides a Python interface to the Telegram Bot API # Copyright (C) 2015-2026 # Leandro Toledo de Souza <devs@python-telegram-bot.org> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser Public License as published by #...
--- +++ @@ -16,6 +16,7 @@ # # You should have received a copy of the GNU Lesser Public License # along with this program. If not, see [http://www.gnu.org/licenses/]. +"""This module contains an object that represents a Telegram Document.""" from telegram._files._basethumbedmedium import _BaseThumbedMedium from t...
https://raw.githubusercontent.com/python-telegram-bot/python-telegram-bot/HEAD/src/telegram/_files/document.py
Add docstrings to improve readability
#!/usr/bin/env python # # A library that provides a Python interface to the Telegram Bot API # Copyright (C) 2015-2026 # Leandro Toledo de Souza <devs@python-telegram-bot.org> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser Public License as published by #...
--- +++ @@ -16,6 +16,7 @@ # # You should have received a copy of the GNU Lesser Public License # along with this program. If not, see [http://www.gnu.org/licenses/]. +"""This module contains an object that represents a Telegram Location.""" import datetime as dtm from typing import Final @@ -28,6 +29,46 @@ c...
https://raw.githubusercontent.com/python-telegram-bot/python-telegram-bot/HEAD/src/telegram/_files/location.py
Help me document legacy Python code
#!/usr/bin/env python # # A library that provides a Python interface to the Telegram Bot API # Copyright (C) 2015-2026 # Leandro Toledo de Souza <devs@python-telegram-bot.org> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser Public License as published by #...
--- +++ @@ -16,12 +16,40 @@ # # You should have received a copy of the GNU Lesser Public License # along with this program. If not, see [http://www.gnu.org/licenses/]. +"""This module contains an object that represents a Telegram PhotoSize.""" from telegram._files._basemedium import _BaseMedium from telegram._ut...
https://raw.githubusercontent.com/python-telegram-bot/python-telegram-bot/HEAD/src/telegram/_files/photosize.py
Add docstrings to meet PEP guidelines
#!/usr/bin/env python # pylint: disable=redefined-builtin # # A library that provides a Python interface to the Telegram Bot API # Copyright (C) 2015-2026 # Leandro Toledo de Souza <devs@python-telegram-bot.org> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Les...
--- +++ @@ -17,6 +17,7 @@ # # You should have received a copy of the GNU Lesser Public License # along with this program. If not, see [http://www.gnu.org/licenses/]. +"""This module contains an object that represents a Telegram ChatFullInfo.""" import datetime as dtm from collections.abc import Sequence @@ -50,6...
https://raw.githubusercontent.com/python-telegram-bot/python-telegram-bot/HEAD/src/telegram/_chatfullinfo.py
Annotate my code with docstrings
#!/usr/bin/env python # # A library that provides a Python interface to the Telegram Bot API # Copyright (C) 2015-2026 # Leandro Toledo de Souza <devs@python-telegram-bot.org> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser Public License as published by #...
--- +++ @@ -16,6 +16,7 @@ # # You should have received a copy of the GNU Lesser Public License # along with this program. If not, see [http://www.gnu.org/licenses/]. +"""This module contains an object that represents a Telegram Venue.""" from typing import TYPE_CHECKING @@ -29,6 +30,40 @@ class Venue(Telegr...
https://raw.githubusercontent.com/python-telegram-bot/python-telegram-bot/HEAD/src/telegram/_files/venue.py
Add documentation for all methods
#!/usr/bin/env python # # A library that provides a Python interface to the Telegram Bot API # Copyright (C) 2015-2026 # Leandro Toledo de Souza <devs@python-telegram-bot.org> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser Public License as published by #...
--- +++ @@ -16,6 +16,7 @@ # # You should have received a copy of the GNU Lesser Public License # along with this program. If not, see [http://www.gnu.org/licenses/]. +"""This module contains an object that represents a Telegram Video.""" import datetime as dtm from collections.abc import Sequence @@ -33,6 +34,82...
https://raw.githubusercontent.com/python-telegram-bot/python-telegram-bot/HEAD/src/telegram/_files/video.py
Create docstrings for API functions
#!/usr/bin/env python # # A library that provides a Python interface to the Telegram Bot API # Copyright (C) 2015-2026 # Leandro Toledo de Souza <devs@python-telegram-bot.org> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser Public License as published by #...
--- +++ @@ -16,6 +16,7 @@ # # You should have received a copy of the GNU Lesser Public License # along with this program. If not, see [http://www.gnu.org/licenses/]. +"""This module contains an object that represents a Telegram Voice.""" import datetime as dtm @@ -26,6 +27,40 @@ class Voice(_BaseMedium): + ...
https://raw.githubusercontent.com/python-telegram-bot/python-telegram-bot/HEAD/src/telegram/_files/voice.py
Add docstrings to my Python code
#!/usr/bin/env python # # A library that provides a Python interface to the Telegram Bot API # Copyright (C) 2015-2026 # Leandro Toledo de Souza <devs@python-telegram-bot.org> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser Public License as published by #...
--- +++ @@ -16,6 +16,7 @@ # # You should have received a copy of the GNU Lesser Public License # along with this program. If not, see [http://www.gnu.org/licenses/]. +"""This module contains an object that represents a Telegram ForceReply.""" from typing import Final @@ -25,6 +26,55 @@ class ForceReply(Tele...
https://raw.githubusercontent.com/python-telegram-bot/python-telegram-bot/HEAD/src/telegram/_forcereply.py
Document all public functions with docstrings
#!/usr/bin/env python # # A library that provides a Python interface to the Telegram Bot API # Copyright (C) 2015-2026 # Leandro Toledo de Souza <devs@python-telegram-bot.org> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser Public License as published by #...
--- +++ @@ -16,12 +16,45 @@ # # You should have received a copy of the GNU Lesser Public License # along with this program. If not, see [http://www.gnu.org/licenses/]. +"""This module contains an object that represents a Telegram VideoQuality.""" from telegram._files._basemedium import _BaseMedium from telegram....
https://raw.githubusercontent.com/python-telegram-bot/python-telegram-bot/HEAD/src/telegram/_files/videoquality.py
Generate docstrings with parameter types
#!/usr/bin/env python # # A library that provides a Python interface to the Telegram Bot API # Copyright (C) 2015-2026 # Leandro Toledo de Souza <devs@python-telegram-bot.org> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser Public License as published by #...
--- +++ @@ -16,6 +16,7 @@ # # You should have received a copy of the GNU Lesser Public License # along with this program. If not, see [http://www.gnu.org/licenses/]. +"""This module contains objects that represent stickers.""" from collections.abc import Sequence from typing import TYPE_CHECKING, Final @@ -34,6 ...
https://raw.githubusercontent.com/python-telegram-bot/python-telegram-bot/HEAD/src/telegram/_files/sticker.py
Generate docstrings for script automation
#!/usr/bin/env python # # A library that provides a Python interface to the Telegram Bot API # Copyright (C) 2015-2026 # Leandro Toledo de Souza <devs@python-telegram-bot.org> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser Public License as published by #...
--- +++ @@ -16,16 +16,18 @@ # # You should have received a copy of the GNU Lesser Public License # along with this program. If not, see [http://www.gnu.org/licenses/]. +"""This module contains an object that represents a Telegram CallbackGame.""" from telegram._telegramobject import TelegramObject from telegram....
https://raw.githubusercontent.com/python-telegram-bot/python-telegram-bot/HEAD/src/telegram/_games/callbackgame.py
Add docstrings to improve readability
#!/usr/bin/env python # # A library that provides a Python interface to the Telegram Bot API # Copyright (C) 2015-2026 # Leandro Toledo de Souza <devs@python-telegram-bot.org> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser Public License as published by #...
--- +++ @@ -16,6 +16,7 @@ # # You should have received a copy of the GNU Lesser Public License # along with this program. If not, see [http://www.gnu.org/licenses/]. +"""This module contains an object that represents a Telegram VideoNote.""" import datetime as dtm @@ -27,6 +28,51 @@ class VideoNote(_BaseThu...
https://raw.githubusercontent.com/python-telegram-bot/python-telegram-bot/HEAD/src/telegram/_files/videonote.py
Annotate my code with docstrings
#!/usr/bin/env python # # A library that provides a Python interface to the Telegram Bot API # Copyright (C) 2015-2026 # Leandro Toledo de Souza <devs@python-telegram-bot.org> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser Public License as published by #...
--- +++ @@ -16,12 +16,44 @@ # # You should have received a copy of the GNU Lesser Public License # along with this program. If not, see [http://www.gnu.org/licenses/]. +"""This module contains objects related to Telegram forum topics.""" from telegram._telegramobject import TelegramObject from telegram._utils.ty...
https://raw.githubusercontent.com/python-telegram-bot/python-telegram-bot/HEAD/src/telegram/_forumtopic.py
Generate docstrings for script automation
#!/usr/bin/env python # # A library that provides a Python interface to the Telegram Bot API # Copyright (C) 2015-2026 # Leandro Toledo de Souza <devs@python-telegram-bot.org> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser Public License as published by #...
--- +++ @@ -16,6 +16,7 @@ # # You should have received a copy of the GNU Lesser Public License # along with this program. If not, see [http://www.gnu.org/licenses/]. +"""This module contains an object that represents a Telegram Game.""" from collections.abc import Sequence from typing import TYPE_CHECKING @@ -33...
https://raw.githubusercontent.com/python-telegram-bot/python-telegram-bot/HEAD/src/telegram/_games/game.py
Add return value explanations in docstrings
#!/usr/bin/env python # # A library that provides a Python interface to the Telegram Bot API # Copyright (C) 2015-2026 # Leandro Toledo de Souza <devs@python-telegram-bot.org> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser Public License as published by #...
--- +++ @@ -16,6 +16,7 @@ # # You should have received a copy of the GNU Lesser Public License # along with this program. If not, see [http://www.gnu.org/licenses/]. +"""This module contains an object that represents a Telegram InlineKeyboardButton.""" from typing import TYPE_CHECKING, Final @@ -34,6 +35,241 @@...
https://raw.githubusercontent.com/python-telegram-bot/python-telegram-bot/HEAD/src/telegram/_inline/inlinekeyboardbutton.py
Create docstrings for API functions
#!/usr/bin/env python # # A library that provides a Python interface to the Telegram Bot API # Copyright (C) 2015-2026 # Leandro Toledo de Souza <devs@python-telegram-bot.org> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser Public License as published by #...
--- +++ @@ -16,6 +16,7 @@ # # You should have received a copy of the GNU Lesser Public License # along with this program. If not, see [http://www.gnu.org/licenses/]. +"""This module contains an object that represents a Telegram GameHighScore.""" from typing import TYPE_CHECKING @@ -29,6 +30,22 @@ class Game...
https://raw.githubusercontent.com/python-telegram-bot/python-telegram-bot/HEAD/src/telegram/_games/gamehighscore.py
Improve documentation using docstrings
#!/usr/bin/env python # # A library that provides a Python interface to the Telegram Bot API # Copyright (C) 2015-2026 # Leandro Toledo de Souza <devs@python-telegram-bot.org> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser Public License as published by #...
--- +++ @@ -16,6 +16,7 @@ # # You should have received a copy of the GNU Lesser Public License # along with this program. If not, see [http://www.gnu.org/licenses/]. +"""This module contains an object that represents an invite link for a chat.""" import datetime as dtm from typing import TYPE_CHECKING @@ -35,6 +...
https://raw.githubusercontent.com/python-telegram-bot/python-telegram-bot/HEAD/src/telegram/_chatinvitelink.py
Create docstrings for reusable components
#!/usr/bin/env python # # A library that provides a Python interface to the Telegram Bot API # Copyright (C) 2015-2026 # Leandro Toledo de Souza <devs@python-telegram-bot.org> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser Public License as published by #...
--- +++ @@ -16,6 +16,7 @@ # # You should have received a copy of the GNU Lesser Public License # along with this program. If not, see [http://www.gnu.org/licenses/]. +"""This module contains an object that represents a Telegram ChatJoinRequest.""" import datetime as dtm from typing import TYPE_CHECKING @@ -34,6 ...
https://raw.githubusercontent.com/python-telegram-bot/python-telegram-bot/HEAD/src/telegram/_chatjoinrequest.py
Document this code for team use
#!/usr/bin/env python # # A library that provides a Python interface to the Telegram Bot API # Copyright (C) 2015-2026 # Leandro Toledo de Souza <devs@python-telegram-bot.org> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser Public License as published by #...
--- +++ @@ -17,6 +17,7 @@ # You should have received a copy of the GNU Lesser Public License # along with this program. If not, see [http://www.gnu.org/licenses/]. # pylint: disable=redefined-builtin +"""This module contains the classes that represent Telegram InlineQueryResult.""" from typing import Final @@ -...
https://raw.githubusercontent.com/python-telegram-bot/python-telegram-bot/HEAD/src/telegram/_inline/inlinequeryresult.py
Write docstrings for this repository
#!/usr/bin/env python # pylint: disable=too-many-arguments # # A library that provides a Python interface to the Telegram Bot API # Copyright (C) 2015-2026 # Leandro Toledo de Souza <devs@python-telegram-bot.org> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Le...
--- +++ @@ -17,6 +17,7 @@ # # You should have received a copy of the GNU Lesser Public License # along with this program. If not, see [http://www.gnu.org/licenses/]. +"""This module contains an object that represents a Telegram ChosenInlineResult.""" from typing import TYPE_CHECKING @@ -31,6 +32,39 @@ class...
https://raw.githubusercontent.com/python-telegram-bot/python-telegram-bot/HEAD/src/telegram/_choseninlineresult.py
Generate consistent documentation across files
#!/usr/bin/env python # pylint: disable=redefined-builtin # # A library that provides a Python interface to the Telegram Bot API # Copyright (C) 2015-2026 # Leandro Toledo de Souza <devs@python-telegram-bot.org> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Les...
--- +++ @@ -17,6 +17,7 @@ # # You should have received a copy of the GNU Lesser Public License # along with this program. If not, see [http://www.gnu.org/licenses/] +"""This module contains classes related to gifs sent by bots.""" from collections.abc import Sequence from typing import TYPE_CHECKING @@ -34,6 +35...
https://raw.githubusercontent.com/python-telegram-bot/python-telegram-bot/HEAD/src/telegram/_gifts.py
Generate descriptive docstrings automatically
#!/usr/bin/env python # # A library that provides a Python interface to the Telegram Bot API # Copyright (C) 2015-2026 # Leandro Toledo de Souza <devs@python-telegram-bot.org> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser Public License as published by #...
--- +++ @@ -16,6 +16,7 @@ # # You should have received a copy of the GNU Lesser Public License # along with this program. If not, see [http://www.gnu.org/licenses/]. +"""This module contains an object that represents a Telegram ChatMember.""" import datetime as dtm from typing import TYPE_CHECKING, Final @@ -33,...
https://raw.githubusercontent.com/python-telegram-bot/python-telegram-bot/HEAD/src/telegram/_chatmember.py
Create docstrings for API functions
#!/usr/bin/env python # # A library that provides a Python interface to the Telegram Bot API # Copyright (C) 2015-2026 # Leandro Toledo de Souza <devs@python-telegram-bot.org> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser Public License as published by #...
--- +++ @@ -16,6 +16,7 @@ # # You should have received a copy of the GNU Lesser Public License # along with this program. If not, see [http://www.gnu.org/licenses/]. +"""This module contains an object that represents a Telegram ChatMemberUpdated.""" import datetime as dtm from typing import TYPE_CHECKING @@ -34,...
https://raw.githubusercontent.com/python-telegram-bot/python-telegram-bot/HEAD/src/telegram/_chatmemberupdated.py
Help me document legacy Python code
#!/usr/bin/env python # # A library that provides a Python interface to the Telegram Bot API # Copyright (C) 2015-2026 # Leandro Toledo de Souza <devs@python-telegram-bot.org> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser Public License as published by #...
--- +++ @@ -16,6 +16,7 @@ # # You should have received a copy of the GNU Lesser Public License # along with this program. If not, see [http://www.gnu.org/licenses/]. +"""This module contains an objects related to Telegram checklists.""" import datetime as dtm from collections.abc import Sequence @@ -36,6 +37,48 ...
https://raw.githubusercontent.com/python-telegram-bot/python-telegram-bot/HEAD/src/telegram/_checklists.py
Add clean documentation to messy code
#!/usr/bin/env python # # A library that provides a Python interface to the Telegram Bot API # Copyright (C) 2015-2026 # Leandro Toledo de Souza <devs@python-telegram-bot.org> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser Public License as published by #...
--- +++ @@ -16,6 +16,7 @@ # # You should have received a copy of the GNU Lesser Public License # along with this program. If not, see [http://www.gnu.org/licenses/]. +"""This module contains the classes that represent Telegram InlineQueryResultCachedAudio.""" from collections.abc import Sequence from typing impo...
https://raw.githubusercontent.com/python-telegram-bot/python-telegram-bot/HEAD/src/telegram/_inline/inlinequeryresultcachedaudio.py
Add minimal docstrings for each function
#!/usr/bin/env python # # A library that provides a Python interface to the Telegram Bot API # Copyright (C) 2015-2026 # Leandro Toledo de Souza <devs@python-telegram-bot.org> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser Public License as published by #...
--- +++ @@ -16,6 +16,7 @@ # # You should have received a copy of the GNU Lesser Public License # along with this program. If not, see [http://www.gnu.org/licenses/]. +"""This module contains an object that represents a Telegram ChatPermission.""" from typing import TYPE_CHECKING @@ -27,6 +28,125 @@ class Ch...
https://raw.githubusercontent.com/python-telegram-bot/python-telegram-bot/HEAD/src/telegram/_chatpermissions.py
Add docstrings to improve collaboration
#!/usr/bin/env python # pylint: disable=too-many-arguments # # A library that provides a Python interface to the Telegram Bot API # Copyright (C) 2015-2026 # Leandro Toledo de Souza <devs@python-telegram-bot.org> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Le...
--- +++ @@ -17,6 +17,7 @@ # # You should have received a copy of the GNU Lesser Public License # along with this program. If not, see [http://www.gnu.org/licenses/]. +"""This module contains an object that represents a Telegram InlineQuery.""" from collections.abc import Callable, Sequence from typing import TYP...
https://raw.githubusercontent.com/python-telegram-bot/python-telegram-bot/HEAD/src/telegram/_inline/inlinequery.py
Write docstrings that follow conventions
#!/usr/bin/env python # # A library that provides a Python interface to the Telegram Bot API # Copyright (C) 2015-2026 # Leandro Toledo de Souza <devs@python-telegram-bot.org> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser Public License as published by #...
--- +++ @@ -16,6 +16,7 @@ # # You should have received a copy of the GNU Lesser Public License # along with this program. If not, see [http://www.gnu.org/licenses/]. +"""This module contains the classes that represent Telegram InlineQueryResultContact.""" from typing import TYPE_CHECKING @@ -29,6 +30,62 @@ ...
https://raw.githubusercontent.com/python-telegram-bot/python-telegram-bot/HEAD/src/telegram/_inline/inlinequeryresultcontact.py
Generate docstrings for exported functions
#!/usr/bin/env python # # A library that provides a Python interface to the Telegram Bot API # Copyright (C) 2015-2026 # Leandro Toledo de Souza <devs@python-telegram-bot.org> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser Public License as published by #...
--- +++ @@ -16,6 +16,7 @@ # # You should have received a copy of the GNU Lesser Public License # along with this program. If not, see [http://www.gnu.org/licenses/]. +"""This module contains the classes that represent Telegram InlineQueryResultCachedSticker.""" from typing import TYPE_CHECKING @@ -29,6 +30,35 @...
https://raw.githubusercontent.com/python-telegram-bot/python-telegram-bot/HEAD/src/telegram/_inline/inlinequeryresultcachedsticker.py
Generate consistent documentation across files
#!/usr/bin/env python # # A library that provides a Python interface to the Telegram Bot API # Copyright (C) 2015-2026 # Leandro Toledo de Souza <devs@python-telegram-bot.org> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser Public License as published by #...
--- +++ @@ -16,6 +16,7 @@ # # You should have received a copy of the GNU Lesser Public License # along with this program. If not, see [http://www.gnu.org/licenses/]. +"""This module contains the classes that represent Telegram InlineQueryResultCachedVideo.""" from collections.abc import Sequence from typing impo...
https://raw.githubusercontent.com/python-telegram-bot/python-telegram-bot/HEAD/src/telegram/_inline/inlinequeryresultcachedvideo.py
Write beginner-friendly docstrings
#!/usr/bin/env python # # A library that provides a Python interface to the Telegram Bot API # Copyright (C) 2015-2026 # Leandro Toledo de Souza <devs@python-telegram-bot.org> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser Public License as published by #...
--- +++ @@ -16,6 +16,7 @@ # # You should have received a copy of the GNU Lesser Public License # along with this program. If not, see [http://www.gnu.org/licenses/]. +"""This module contains the classes that represent Telegram InlineQueryResultArticle.""" from typing import TYPE_CHECKING @@ -29,6 +30,64 @@ ...
https://raw.githubusercontent.com/python-telegram-bot/python-telegram-bot/HEAD/src/telegram/_inline/inlinequeryresultarticle.py
Help me add docstrings to my project
#!/usr/bin/env python # # A library that provides a Python interface to the Telegram Bot API # Copyright (C) 2015-2026 # Leandro Toledo de Souza <devs@python-telegram-bot.org> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser Public License as published by #...
--- +++ @@ -16,6 +16,7 @@ # # You should have received a copy of the GNU Lesser Public License # along with this program. If not, see [http://www.gnu.org/licenses/]. +"""This module contains an object that represents a location to which a chat is connected.""" from typing import TYPE_CHECKING, Final @@ -30,6 +3...
https://raw.githubusercontent.com/python-telegram-bot/python-telegram-bot/HEAD/src/telegram/_chatlocation.py
Fill in missing docstrings in my code
#!/usr/bin/env python # # A library that provides a Python interface to the Telegram Bot API # Copyright (C) 2015-2026 # Leandro Toledo de Souza <devs@python-telegram-bot.org> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser Public License as published by #...
--- +++ @@ -16,6 +16,7 @@ # # You should have received a copy of the GNU Lesser Public License # along with this program. If not, see [http://www.gnu.org/licenses/]. +"""This module contains the classes that represent Telegram InlineQueryResultDocument""" from collections.abc import Sequence from typing import T...
https://raw.githubusercontent.com/python-telegram-bot/python-telegram-bot/HEAD/src/telegram/_inline/inlinequeryresultdocument.py
Expand my code with proper documentation strings
#!/usr/bin/env python # # A library that provides a Python interface to the Telegram Bot API # Copyright (C) 2015-2026 # Leandro Toledo de Souza <devs@python-telegram-bot.org> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser Public License as published by #...
--- +++ @@ -16,6 +16,7 @@ # # You should have received a copy of the GNU Lesser Public License # along with this program. If not, see [http://www.gnu.org/licenses/]. +"""This module contains the classes that represent Telegram InlineQueryResultAudio.""" import datetime as dtm from collections.abc import Sequence...
https://raw.githubusercontent.com/python-telegram-bot/python-telegram-bot/HEAD/src/telegram/_inline/inlinequeryresultaudio.py
Add standardized docstrings across the file
#!/usr/bin/env python # # A library that provides a Python interface to the Telegram Bot API # Copyright (C) 2015-2026 # Leandro Toledo de Souza <devs@python-telegram-bot.org> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser Public License as published by #...
--- +++ @@ -16,6 +16,7 @@ # # You should have received a copy of the GNU Lesser Public License # along with this program. If not, see [http://www.gnu.org/licenses/]. +"""This module contains the classes that represent Telegram InlineQueryResultCachedDocument.""" from collections.abc import Sequence from typing i...
https://raw.githubusercontent.com/python-telegram-bot/python-telegram-bot/HEAD/src/telegram/_inline/inlinequeryresultcacheddocument.py
Add missing documentation to my Python functions
#!/usr/bin/env python # # A library that provides a Python interface to the Telegram Bot API # Copyright (C) 2015-2026 # Leandro Toledo de Souza <devs@python-telegram-bot.org> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser Public License as published by #...
--- +++ @@ -16,12 +16,41 @@ # # You should have received a copy of the GNU Lesser Public License # along with this program. If not, see [http://www.gnu.org/licenses/]. +"""This module contains an object that represents a Direct Message Price.""" from telegram._telegramobject import TelegramObject from telegram._...
https://raw.githubusercontent.com/python-telegram-bot/python-telegram-bot/HEAD/src/telegram/_directmessagepricechanged.py
Write docstrings for utility functions
#!/usr/bin/env python # # A library that provides a Python interface to the Telegram Bot API # Copyright (C) 2015-2026 # Leandro Toledo de Souza <devs@python-telegram-bot.org> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser Public License as published by #...
--- +++ @@ -16,6 +16,7 @@ # # You should have received a copy of the GNU Lesser Public License # along with this program. If not, see [http://www.gnu.org/licenses/]. +"""This module contains the classes that represent Telegram InlineQueryResultVideo.""" import datetime as dtm from collections.abc import Sequence...
https://raw.githubusercontent.com/python-telegram-bot/python-telegram-bot/HEAD/src/telegram/_inline/inlinequeryresultvideo.py
Add docstrings that explain inputs and outputs
#!/usr/bin/env python # # A library that provides a Python interface to the Telegram Bot API # Copyright (C) 2015-2026 # Leandro Toledo de Souza <devs@python-telegram-bot.org> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser Public License as published by #...
--- +++ @@ -16,6 +16,7 @@ # # You should have received a copy of the GNU Lesser Public License # along with this program. If not, see [http://www.gnu.org/licenses/]. +"""This module contains the classes that represent Telegram InlineQueryResultVenue.""" from typing import TYPE_CHECKING @@ -29,6 +30,80 @@ cl...
https://raw.githubusercontent.com/python-telegram-bot/python-telegram-bot/HEAD/src/telegram/_inline/inlinequeryresultvenue.py
Replace inline comments with docstrings
#!/usr/bin/env python # # A library that provides a Python interface to the Telegram Bot API # Copyright (C) 2015-2026 # Leandro Toledo de Souza <devs@python-telegram-bot.org> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser Public License as published by #...
--- +++ @@ -16,12 +16,32 @@ # # You should have received a copy of the GNU Lesser Public License # along with this program. If not, see [http://www.gnu.org/licenses/]. +"""This module contains an object that represents a Telegram CopyTextButton.""" from telegram._telegramobject import TelegramObject from telegra...
https://raw.githubusercontent.com/python-telegram-bot/python-telegram-bot/HEAD/src/telegram/_copytextbutton.py
Generate docstrings with parameter types
#!/usr/bin/env python # # A library that provides a Python interface to the Telegram Bot API # Copyright (C) 2015-2026 # Leandro Toledo de Souza <devs@python-telegram-bot.org> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser Public License as published by #...
--- +++ @@ -16,6 +16,7 @@ # # You should have received a copy of the GNU Lesser Public License # along with this program. If not, see [http://www.gnu.org/licenses/]. +"""This module contains the classes that represent Telegram InlineQueryResultVoice.""" import datetime as dtm from collections.abc import Sequence...
https://raw.githubusercontent.com/python-telegram-bot/python-telegram-bot/HEAD/src/telegram/_inline/inlinequeryresultvoice.py
Add docstrings that explain logic
#!/usr/bin/env python # # A library that provides a Python interface to the Telegram Bot API # Copyright (C) 2015-2026 # Leandro Toledo de Souza <devs@python-telegram-bot.org> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser Public License as published by #...
--- +++ @@ -16,6 +16,7 @@ # # You should have received a copy of the GNU Lesser Public License # along with this program. If not, see [http://www.gnu.org/licenses/]. +"""This module contains the classes that represent Telegram InlineQueryResultCachedVoice.""" from collections.abc import Sequence from typing impo...
https://raw.githubusercontent.com/python-telegram-bot/python-telegram-bot/HEAD/src/telegram/_inline/inlinequeryresultcachedvoice.py
Provide docstrings following PEP 257
#!/usr/bin/env python # # A library that provides a Python interface to the Telegram Bot API # Copyright (C) 2015-2026 # Leandro Toledo de Souza <devs@python-telegram-bot.org> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser Public License as published by #...
--- +++ @@ -16,6 +16,7 @@ # # You should have received a copy of the GNU Lesser Public License # along with this program. If not, see [http://www.gnu.org/licenses/]. +"""This module contains an object that represents a chat owner change in the chat.""" from typing import TYPE_CHECKING @@ -29,6 +30,20 @@ cla...
https://raw.githubusercontent.com/python-telegram-bot/python-telegram-bot/HEAD/src/telegram/_chatowner.py
Write clean docstrings for readability
#!/usr/bin/env python # # A library that provides a Python interface to the Telegram Bot API # Copyright (C) 2015-2026 # Leandro Toledo de Souza <devs@python-telegram-bot.org> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser Public License as published by #...
--- +++ @@ -16,6 +16,7 @@ # # You should have received a copy of the GNU Lesser Public License # along with this program. If not, see [http://www.gnu.org/licenses/]. +"""This module contains an object that represents a Telegram Prepared inline Message.""" import datetime as dtm from typing import TYPE_CHECKING @...
https://raw.githubusercontent.com/python-telegram-bot/python-telegram-bot/HEAD/src/telegram/_inline/preparedinlinemessage.py
Document functions with clear intent
#!/usr/bin/env python # # A library that provides a Python interface to the Telegram Bot API # Copyright (C) 2015-2026 # Leandro Toledo de Souza <devs@python-telegram-bot.org> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser Public License as published by #...
--- +++ @@ -16,6 +16,7 @@ # # You should have received a copy of the GNU Lesser Public License # along with this program. If not, see [http://www.gnu.org/licenses/]. +"""This module contains an object that represents a Telegram Animation.""" import datetime as dtm @@ -27,6 +28,57 @@ class Animation(_BaseThu...
https://raw.githubusercontent.com/python-telegram-bot/python-telegram-bot/HEAD/src/telegram/_files/animation.py
Generate docstrings for each module
#!/usr/bin/env python # # A library that provides a Python interface to the Telegram Bot API # Copyright (C) 2015-2026 # Leandro Toledo de Souza <devs@python-telegram-bot.org> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser Public License as published by #...
--- +++ @@ -16,6 +16,7 @@ # # You should have received a copy of the GNU Lesser Public License # along with this program. If not, see [http://www.gnu.org/licenses/]. +"""This module contains an object that represents a Telegram Dice.""" from typing import Final @@ -25,6 +26,67 @@ class Dice(TelegramObject):...
https://raw.githubusercontent.com/python-telegram-bot/python-telegram-bot/HEAD/src/telegram/_dice.py
Document all public functions with docstrings
#!/usr/bin/env python # # A library that provides a Python interface to the Telegram Bot API # Copyright (C) 2015-2026 # Leandro Toledo de Souza <devs@python-telegram-bot.org> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser Public License as published by #...
--- +++ @@ -16,6 +16,7 @@ # # You should have received a copy of the GNU Lesser Public License # along with this program. If not, see [http://www.gnu.org/licenses/]. +"""This module contains the classes that represent Telegram InputTextMessageContent.""" from collections.abc import Sequence from typing import TY...
https://raw.githubusercontent.com/python-telegram-bot/python-telegram-bot/HEAD/src/telegram/_inline/inputtextmessagecontent.py
Document classes and their methods
#!/usr/bin/env python # # A library that provides a Python interface to the Telegram Bot API # Copyright (C) 2015-2026 # Leandro Toledo de Souza <devs@python-telegram-bot.org> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser Public License as published by #...
--- +++ @@ -16,12 +16,52 @@ # # You should have received a copy of the GNU Lesser Public License # along with this program. If not, see [http://www.gnu.org/licenses/]. +"""This module contains the classes that represent Telegram InputVenueMessageContent.""" from telegram._inline.inputmessagecontent import InputMe...
https://raw.githubusercontent.com/python-telegram-bot/python-telegram-bot/HEAD/src/telegram/_inline/inputvenuemessagecontent.py
Generate docstrings for script automation
#!/usr/bin/env python # # A library that provides a Python interface to the Telegram Bot API # Copyright (C) 2015-2026 # Leandro Toledo de Souza <devs@python-telegram-bot.org> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser Public License as published by #...
--- +++ @@ -16,6 +16,7 @@ # # You should have received a copy of the GNU Lesser Public License # along with this program. If not, see [http://www.gnu.org/licenses/]. +"""This module contains objects that represent owned gifts.""" import datetime as dtm from collections.abc import Sequence @@ -38,6 +39,23 @@ c...
https://raw.githubusercontent.com/python-telegram-bot/python-telegram-bot/HEAD/src/telegram/_ownedgift.py
Add docstrings for internal functions
#!/usr/bin/env python # # A library that provides a Python interface to the Telegram Bot API # Copyright (C) 2015-2026 # Leandro Toledo de Souza <devs@python-telegram-bot.org> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser Public License as published by #...
--- +++ @@ -16,6 +16,7 @@ # # You should have received a copy of the GNU Lesser Public License # along with this program. If not, see [http://www.gnu.org/licenses/]. +"""This module contains two objects to request chats/users.""" from typing import TYPE_CHECKING @@ -29,6 +30,68 @@ class KeyboardButtonReques...
https://raw.githubusercontent.com/python-telegram-bot/python-telegram-bot/HEAD/src/telegram/_keyboardbuttonrequest.py
Document classes and their methods
#!/usr/bin/env python # # A library that provides a Python interface to the Telegram Bot API # Copyright (C) 2015-2026 # Leandro Toledo de Souza <devs@python-telegram-bot.org> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser Public License as published by #...
--- +++ @@ -16,6 +16,7 @@ # # You should have received a copy of the GNU Lesser Public License # along with this program. If not, see [http://www.gnu.org/licenses/]. +"""This module contains the classes that represent Telegram MessageOigin.""" import datetime as dtm from typing import TYPE_CHECKING, Final @@ -34...
https://raw.githubusercontent.com/python-telegram-bot/python-telegram-bot/HEAD/src/telegram/_messageorigin.py
Add docstrings following best practices
#!/usr/bin/env python # # A library that provides a Python interface to the Telegram Bot API # Copyright (C) 2015-2026 # Leandro Toledo de Souza <devs@python-telegram-bot.org> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser Public License as published by #...
--- +++ @@ -16,6 +16,7 @@ # # You should have received a copy of the GNU Lesser Public License # along with this program. If not, see [http://www.gnu.org/licenses/]. +"""This module contains objects that represent paid media in Telegram.""" import datetime as dtm from collections.abc import Sequence @@ -41,6 +42,...
https://raw.githubusercontent.com/python-telegram-bot/python-telegram-bot/HEAD/src/telegram/_paidmedia.py
Write docstrings for data processing functions
#!/usr/bin/env python # # A library that provides a Python interface to the Telegram Bot API # Copyright (C) 2015-2026 # Leandro Toledo de Souza <devs@python-telegram-bot.org> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser Public License as published by #...
--- +++ @@ -16,6 +16,7 @@ # # You should have received a copy of the GNU Lesser Public License # along with this program. If not, see [http://www.gnu.org/licenses/]. +"""This module contains the class that represent a Telegram InlineQueryResultsButton.""" from typing import TYPE_CHECKING, Final @@ -30,6 +31,49 ...
https://raw.githubusercontent.com/python-telegram-bot/python-telegram-bot/HEAD/src/telegram/_inline/inlinequeryresultsbutton.py
Generate helpful docstrings for debugging
#!/usr/bin/env python # # A library that provides a Python interface to the Telegram Bot API # Copyright (C) 2015-2026 # Leandro Toledo de Souza <devs@python-telegram-bot.org> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser Public License as published by #...
--- +++ @@ -16,6 +16,7 @@ # # You should have received a copy of the GNU Lesser Public License # along with this program. If not, see [http://www.gnu.org/licenses/]. +"""This module contains the classes that represent Telegram InlineQueryResultMpeg4Gif.""" import datetime as dtm from collections.abc import Seque...
https://raw.githubusercontent.com/python-telegram-bot/python-telegram-bot/HEAD/src/telegram/_inline/inlinequeryresultmpeg4gif.py
Write docstrings for this repository
#!/usr/bin/env python # # A library that provides a Python interface to the Telegram Bot API # Copyright (C) 2015-2026 # Leandro Toledo de Souza <devs@python-telegram-bot.org> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser Public License as published by #...
--- +++ @@ -16,6 +16,7 @@ # # You should have received a copy of the GNU Lesser Public License # along with this program. If not, see [http://www.gnu.org/licenses/]. +"""This module contains the DirectMessagesTopic class.""" from typing import TYPE_CHECKING, Optional @@ -29,6 +30,35 @@ class DirectMessagesT...
https://raw.githubusercontent.com/python-telegram-bot/python-telegram-bot/HEAD/src/telegram/_directmessagestopic.py
Add docstrings to improve collaboration
#!/usr/bin/env python # # A library that provides a Python interface to the Telegram Bot API # Copyright (C) 2015-2026 # Leandro Toledo de Souza <devs@python-telegram-bot.org> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser Public License as published by #...
--- +++ @@ -16,6 +16,7 @@ # # You should have received a copy of the GNU Lesser Public License # along with this program. If not, see [http://www.gnu.org/licenses/]. +"""This module contains an object that represents a type of a Telegram Poll.""" from telegram._telegramobject import TelegramObject from telegram....
https://raw.githubusercontent.com/python-telegram-bot/python-telegram-bot/HEAD/src/telegram/_keyboardbuttonpolltype.py
Add docstrings including usage examples
#!/usr/bin/env python # # A library that provides a Python interface to the Telegram Bot API # Copyright (C) 2015-2026 # Leandro Toledo de Souza <devs@python-telegram-bot.org> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser Public License as published by #...
--- +++ @@ -16,6 +16,7 @@ # # You should have received a copy of the GNU Lesser Public License # along with this program. If not, see [http://www.gnu.org/licenses/]. +"""This module contains objects that represent paid media in Telegram.""" import datetime as dtm from typing import Final @@ -30,6 +31,19 @@ cl...
https://raw.githubusercontent.com/python-telegram-bot/python-telegram-bot/HEAD/src/telegram/_files/_inputstorycontent.py
Create Google-style docstrings for my code
#!/usr/bin/env python # # A library that provides a Python interface to the Telegram Bot API # Copyright (C) 2015-2026 # Leandro Toledo de Souza <devs@python-telegram-bot.org> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser Public License as published by #...
--- +++ @@ -16,6 +16,7 @@ # # You should have received a copy of the GNU Lesser Public License # along with this program. If not, see [http://www.gnu.org/licenses/]. +"""This module contains the classes that represent Telegram InlineQueryResultCachedGif.""" from collections.abc import Sequence from typing import...
https://raw.githubusercontent.com/python-telegram-bot/python-telegram-bot/HEAD/src/telegram/_inline/inlinequeryresultcachedgif.py
Write documentation strings for class attributes
#!/usr/bin/env python # # A library that provides a Python interface to the Telegram Bot API # Copyright (C) 2015-2026 # Leandro Toledo de Souza <devs@python-telegram-bot.org> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser Public License as published by #...
--- +++ @@ -16,6 +16,7 @@ # # You should have received a copy of the GNU Lesser Public License # along with this program. If not, see [http://www.gnu.org/licenses/]. +"""This module contains an objects that are related to Telegram input checklists.""" from collections.abc import Sequence @@ -27,6 +28,47 @@ ...
https://raw.githubusercontent.com/python-telegram-bot/python-telegram-bot/HEAD/src/telegram/_inputchecklist.py
Provide clean and structured docstrings
#!/usr/bin/env python # # A library that provides a Python interface to the Telegram Bot API # Copyright (C) 2015-2026 # Leandro Toledo de Souza <devs@python-telegram-bot.org> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser Public License as published by #...
--- +++ @@ -16,6 +16,7 @@ # # You should have received a copy of the GNU Lesser Public License # along with this program. If not, see [http://www.gnu.org/licenses/]. +"""Common base class for media objects with thumbnails""" from typing import TYPE_CHECKING, TypeVar @@ -32,6 +33,34 @@ class _BaseThumbedMedi...
https://raw.githubusercontent.com/python-telegram-bot/python-telegram-bot/HEAD/src/telegram/_files/_basethumbedmedium.py
Help me write clear docstrings
#!/usr/bin/env python # # A library that provides a Python interface to the Telegram Bot API # Copyright (C) 2015-2026 # Leandro Toledo de Souza <devs@python-telegram-bot.org> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser Public License as published by #...
--- +++ @@ -16,6 +16,7 @@ # # You should have received a copy of the GNU Lesser Public License # along with this program. If not, see [http://www.gnu.org/licenses/]. +"""This module contains the classes that represent Telegram InlineQueryResultPhoto.""" from collections.abc import Sequence from typing import TYP...
https://raw.githubusercontent.com/python-telegram-bot/python-telegram-bot/HEAD/src/telegram/_inline/inlinequeryresultphoto.py
Add docstrings to my Python code
#!/usr/bin/env python # # A library that provides a Python interface to the Telegram Bot API # Copyright (C) 2015-2026 # Leandro Toledo de Souza <devs@python-telegram-bot.org> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser Public License as published by #...
--- +++ @@ -16,6 +16,7 @@ # # You should have received a copy of the GNU Lesser Public License # along with this program. If not, see [http://www.gnu.org/licenses/]. +"""This module contains the classes that represent Telegram InlineQueryResultMpeg4Gif.""" from collections.abc import Sequence from typing import ...
https://raw.githubusercontent.com/python-telegram-bot/python-telegram-bot/HEAD/src/telegram/_inline/inlinequeryresultcachedmpeg4gif.py
Add inline docstrings for readability
#!/usr/bin/env python # # A library that provides a Python interface to the Telegram Bot API # Copyright (C) 2015-2026 # Leandro Toledo de Souza <devs@python-telegram-bot.org> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser Public License as published by #...
--- +++ @@ -16,12 +16,30 @@ # # You should have received a copy of the GNU Lesser Public License # along with this program. If not, see [http://www.gnu.org/licenses/]. +"""This module contains an object that represents an instance of a Telegram MessageId.""" from telegram._telegramobject import TelegramObject fr...
https://raw.githubusercontent.com/python-telegram-bot/python-telegram-bot/HEAD/src/telegram/_messageid.py
Generate descriptive docstrings automatically
#!/usr/bin/env python # # A library that provides a Python interface to the Telegram Bot API # Copyright (C) 2015-2026 # Leandro Toledo de Souza <devs@python-telegram-bot.org> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser Public License as published by #...
--- +++ @@ -16,6 +16,7 @@ # # You should have received a copy of the GNU Lesser Public License # along with this program. If not, see [http://www.gnu.org/licenses/]. +"""This module contains an object that represents a Telegram KeyboardButton.""" from typing import TYPE_CHECKING @@ -31,6 +32,142 @@ class Ke...
https://raw.githubusercontent.com/python-telegram-bot/python-telegram-bot/HEAD/src/telegram/_keyboardbutton.py
Add docstrings to incomplete code
#!/usr/bin/env python # # A library that provides a Python interface to the Telegram Bot API # Copyright (C) 2015-2026 # Leandro Toledo de Souza <devs@python-telegram-bot.org> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser Public License as published by #...
--- +++ @@ -16,6 +16,7 @@ # # You should have received a copy of the GNU Lesser Public License # along with this program. If not, see [http://www.gnu.org/licenses/]. +"""Common base class for media objects""" from typing import TYPE_CHECKING @@ -28,6 +29,27 @@ class _BaseMedium(TelegramObject): + """Base...
https://raw.githubusercontent.com/python-telegram-bot/python-telegram-bot/HEAD/src/telegram/_files/_basemedium.py
Generate docstrings for script automation
#!/usr/bin/env python # # A library that provides a Python interface to the Telegram Bot API # Copyright (C) 2015-2026 # Leandro Toledo de Souza <devs@python-telegram-bot.org> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser Public License as published by #...
--- +++ @@ -50,6 +50,26 @@ @no_type_check def decrypt(secret, hash, data): + """ + Decrypt per telegram docs at https://core.telegram.org/passport. + + Args: + secret (:obj:`str` or :obj:`bytes`): The encryption secret, either as bytes or as a + base64 encoded string. + hash (:obj:`...
https://raw.githubusercontent.com/python-telegram-bot/python-telegram-bot/HEAD/src/telegram/_passport/credentials.py
Generate docstrings with examples
#!/usr/bin/env python # # A library that provides a Python interface to the Telegram Bot API # Copyright (C) 2015-2026 # Leandro Toledo de Souza <devs@python-telegram-bot.org> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser Public License as published by #...
--- +++ @@ -23,6 +23,41 @@ class PersonalDetails(TelegramObject): + """ + This object represents personal details. + + Args: + first_name (:obj:`str`): First Name. + middle_name (:obj:`str`): Optional. First Name. + last_name (:obj:`str`): Last Name. + birth_date (:obj:`str`): D...
https://raw.githubusercontent.com/python-telegram-bot/python-telegram-bot/HEAD/src/telegram/_passport/data.py
Add docstrings that explain logic
#!/usr/bin/env python # # A library that provides a Python interface to the Telegram Bot API # Copyright (C) 2015-2026 # Leandro Toledo de Souza <devs@python-telegram-bot.org> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser Public License as published by #...
--- +++ @@ -16,6 +16,7 @@ # # You should have received a copy of the GNU Lesser Public License # along with this program. If not, see [http://www.gnu.org/licenses/]. +"""This module contains an object that represents a Telegram InlineKeyboardMarkup.""" from collections.abc import Sequence from typing import TYPE...
https://raw.githubusercontent.com/python-telegram-bot/python-telegram-bot/HEAD/src/telegram/_inline/inlinekeyboardmarkup.py
Write Python docstrings for this snippet
#!/usr/bin/env python # # A library that provides a Python interface to the Telegram Bot API # Copyright (C) 2015-2026 # Leandro Toledo de Souza <devs@python-telegram-bot.org> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser Public License as published by #...
--- +++ @@ -17,6 +17,7 @@ # You should have received a copy of the GNU Lesser Public License # along with this program. If not, see [http://www.gnu.org/licenses/]. # pylint: disable=redefined-builtin +"""This module contains the classes that represent Telegram PassportElementError.""" from collections.abc import ...
https://raw.githubusercontent.com/python-telegram-bot/python-telegram-bot/HEAD/src/telegram/_passport/passportelementerrors.py
Fill in missing docstrings in my code
#!/usr/bin/env python # A library that provides a Python interface to the Telegram Bot API # Copyright (C) 2015-2026 # Leandro Toledo de Souza <devs@python-telegram-bot.org> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser Public License as published by # t...
--- +++ @@ -15,6 +15,7 @@ # # You should have received a copy of the GNU Lesser Public License # along with this program. If not, see [http://www.gnu.org/licenses/]. +"""This module contains an object that represents a Telegram EncryptedPassportElement.""" from base64 import b64decode from collections.abc import...
https://raw.githubusercontent.com/python-telegram-bot/python-telegram-bot/HEAD/src/telegram/_passport/encryptedpassportelement.py
Document classes and their methods
#!/usr/bin/env python # # A library that provides a Python interface to the Telegram Bot API # Copyright (C) 2015-2026 # Leandro Toledo de Souza <devs@python-telegram-bot.org> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser Public License as published by #...
--- +++ @@ -16,6 +16,7 @@ # # You should have received a copy of the GNU Lesser Public License # along with this program. If not, see [http://www.gnu.org/licenses/]. +"""Contains information about Telegram Passport data shared with the bot by the user.""" from collections.abc import Sequence from typing import T...
https://raw.githubusercontent.com/python-telegram-bot/python-telegram-bot/HEAD/src/telegram/_passport/passportdata.py
Generate docstrings for exported functions
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from typing import Dict, Optional from typing_extensions import Literal from pydantic import Field as FieldInfo from ..._models import BaseModel __all__ = ["ResponseFormatJSONSchema", "JSONSchema"] class JSONSchema(BaseModel): ...
--- +++ @@ -11,6 +11,7 @@ class JSONSchema(BaseModel): + """Structured Outputs configuration options, including a JSON Schema.""" name: str """The name of the response format. @@ -42,9 +43,14 @@ class ResponseFormatJSONSchema(BaseModel): + """JSON Schema response format. + + Used to generat...
https://raw.githubusercontent.com/openai/openai-python/HEAD/src/openai/types/shared/response_format_json_schema.py
Create docstrings for each class method
#!/usr/bin/env python # # A library that provides a Python interface to the Telegram Bot API # Copyright (C) 2015-2026 # Leandro Toledo de Souza <devs@python-telegram-bot.org> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser Public License as published by #...
--- +++ @@ -16,6 +16,7 @@ # # You should have received a copy of the GNU Lesser Public License # along with this program. If not, see [http://www.gnu.org/licenses/]. +"""This module contains an object that represents a Encrypted PassportFile.""" import datetime as dtm from typing import TYPE_CHECKING @@ -30,6 +3...
https://raw.githubusercontent.com/python-telegram-bot/python-telegram-bot/HEAD/src/telegram/_passport/passportfile.py
Document this module using docstrings
#!/usr/bin/env python3 import csv import os import random from datetime import UTC, datetime, timedelta from pathlib import Path from typing import Any import requests from scripts.utils.repo_root import find_repo_root REPO_ROOT = find_repo_root(Path(__file__)) _STAR_DELTA_CACHE: dict[str, int] = {} def fetch_re...
--- +++ @@ -1,4 +1,11 @@ #!/usr/bin/env python3 +""" +Generate dynamic stock ticker SVGs from repository data. + +This script reads the repo ticker CSV and generates animated SVG files +with a random sampling of repositories for both dark and light themes. +Displays deltas for each metric with color coding. +""" imp...
https://raw.githubusercontent.com/hesreallyhim/awesome-claude-code/HEAD/scripts/ticker/generate_ticker_svg.py
Create structured documentation for my script
#!/usr/bin/env python # # A library that provides a Python interface to the Telegram Bot API # Copyright (C) 2015-2026 # Leandro Toledo de Souza <devs@python-telegram-bot.org> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser Public License as published by #...
--- +++ @@ -16,6 +16,7 @@ # # You should have received a copy of the GNU Lesser Public License # along with this program. If not, see [http://www.gnu.org/licenses/]. +"""This module contains an object that represents a Telegram Audio.""" import datetime as dtm @@ -27,6 +28,59 @@ class Audio(_BaseThumbedMedi...
https://raw.githubusercontent.com/python-telegram-bot/python-telegram-bot/HEAD/src/telegram/_files/audio.py
Create documentation strings for testing functions
#!/usr/bin/env python # # A library that provides a Python interface to the Telegram Bot API # Copyright (C) 2015-2026 # Leandro Toledo de Souza <devs@python-telegram-bot.org> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser Public License as published by #...
--- +++ @@ -16,6 +16,7 @@ # # You should have received a copy of the GNU Lesser Public License # along with this program. If not, see [http://www.gnu.org/licenses/]. +"""This module contains the classes that represent Telegram InlineQueryResultPhoto""" from collections.abc import Sequence from typing import TYPE...
https://raw.githubusercontent.com/python-telegram-bot/python-telegram-bot/HEAD/src/telegram/_inline/inlinequeryresultcachedphoto.py
Include argument descriptions in docstrings
#!/usr/bin/env python # # A library that provides a Python interface to the Telegram Bot API # Copyright (C) 2015-2026 # Leandro Toledo de Souza <devs@python-telegram-bot.org> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser Public License as published by #...
--- +++ @@ -16,6 +16,7 @@ # # You should have received a copy of the GNU Lesser Public License # along with this program. If not, see [http://www.gnu.org/licenses/]. +"""This module contains an object that represents a Telegram ChatPhoto.""" from typing import TYPE_CHECKING, Final @@ -29,6 +30,49 @@ class C...
https://raw.githubusercontent.com/python-telegram-bot/python-telegram-bot/HEAD/src/telegram/_files/chatphoto.py
Write docstrings for this repository
#!/usr/bin/env python # # A library that provides a Python interface to the Telegram Bot API # Copyright (C) 2015-2026 # Leandro Toledo de Souza <devs@python-telegram-bot.org> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser Public License as published by #...
--- +++ @@ -16,6 +16,7 @@ # # You should have received a copy of the GNU Lesser Public License # along with this program. If not, see [http://www.gnu.org/licenses/]. +"""This module contains the classes that represent Telegram InlineQueryResultGif.""" import datetime as dtm from collections.abc import Sequence @...
https://raw.githubusercontent.com/python-telegram-bot/python-telegram-bot/HEAD/src/telegram/_inline/inlinequeryresultgif.py
Write docstrings for utility functions
#!/usr/bin/env python # # A library that provides a Python interface to the Telegram Bot API # Copyright (C) 2015-2026 # Leandro Toledo de Souza <devs@python-telegram-bot.org> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser Public License as published by #...
--- +++ @@ -16,6 +16,7 @@ # # You should have received a copy of the GNU Lesser Public License # along with this program. If not, see [http://www.gnu.org/licenses/]. +"""This module contains an object that represents a Telegram PreCheckoutQuery.""" from typing import TYPE_CHECKING @@ -31,6 +32,48 @@ class P...
https://raw.githubusercontent.com/python-telegram-bot/python-telegram-bot/HEAD/src/telegram/_payment/precheckoutquery.py
Add well-formatted docstrings
#!/usr/bin/env python # # A library that provides a Python interface to the Telegram Bot API # Copyright (C) 2015-2026 # Leandro Toledo de Souza <devs@python-telegram-bot.org> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser Public License as published by #...
--- +++ @@ -16,6 +16,7 @@ # # You should have received a copy of the GNU Lesser Public License # along with this program. If not, see [http://www.gnu.org/licenses/]. +"""This module contains the classes for Telegram Stars affiliates.""" from typing import TYPE_CHECKING @@ -30,6 +31,46 @@ class AffiliateInfo(...
https://raw.githubusercontent.com/python-telegram-bot/python-telegram-bot/HEAD/src/telegram/_payment/stars/affiliateinfo.py
Add docstrings to existing functions
#!/usr/bin/env python # # A library that provides a Python interface to the Telegram Bot API # Copyright (C) 2015-2026 # Leandro Toledo de Souza <devs@python-telegram-bot.org> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser Public License as published by #...
--- +++ @@ -16,6 +16,7 @@ # # You should have received a copy of the GNU Lesser Public License # along with this program. If not, see [http://www.gnu.org/licenses/]. +"""This module contains the classes that represent Telegram InlineQueryResultGame.""" from telegram._inline.inlinekeyboardmarkup import InlineKeybo...
https://raw.githubusercontent.com/python-telegram-bot/python-telegram-bot/HEAD/src/telegram/_inline/inlinequeryresultgame.py
Provide clean and structured docstrings
#!/usr/bin/env python # # A library that provides a Python interface to the Telegram Bot API # Copyright (C) 2015-2026 # Leandro Toledo de Souza <devs@python-telegram-bot.org> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser Public License as published by #...
--- +++ @@ -16,12 +16,33 @@ # # You should have received a copy of the GNU Lesser Public License # along with this program. If not, see [http://www.gnu.org/licenses/]. +"""This module contains the classes that represent Telegram InputContactMessageContent.""" from telegram._inline.inputmessagecontent import Input...
https://raw.githubusercontent.com/python-telegram-bot/python-telegram-bot/HEAD/src/telegram/_inline/inputcontactmessagecontent.py
Add clean documentation to messy code
#!/usr/bin/env python # # A library that provides a Python interface to the Telegram Bot API # Copyright (C) 2015-2026 # Leandro Toledo de Souza <devs@python-telegram-bot.org> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser Public License as published by #...
--- +++ @@ -16,6 +16,7 @@ # # You should have received a copy of the GNU Lesser Public License # along with this program. If not, see [http://www.gnu.org/licenses/]. +"""This module contains an object that represents a Telegram ShippingOption.""" from collections.abc import Sequence from typing import TYPE_CHECK...
https://raw.githubusercontent.com/python-telegram-bot/python-telegram-bot/HEAD/src/telegram/_payment/shippingoption.py
Generate consistent documentation across files
#!/usr/bin/env python # # A library that provides a Python interface to the Telegram Bot API # Copyright (C) 2015-2026 # Leandro Toledo de Souza <devs@python-telegram-bot.org> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser Public License as published by #...
--- +++ @@ -16,12 +16,35 @@ # # You should have received a copy of the GNU Lesser Public License # along with this program. If not, see [http://www.gnu.org/licenses/]. +"""This module contains an object that represents a Telegram StarAmount.""" from telegram._telegramobject import TelegramObject from telegram._ut...
https://raw.githubusercontent.com/python-telegram-bot/python-telegram-bot/HEAD/src/telegram/_payment/stars/staramount.py
Add clean documentation to messy code
#!/usr/bin/env python # # A library that provides a Python interface to the Telegram Bot API # Copyright (C) 2015-2026 # Leandro Toledo de Souza <devs@python-telegram-bot.org> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser Public License as published by #...
--- +++ @@ -16,12 +16,30 @@ # # You should have received a copy of the GNU Lesser Public License # along with this program. If not, see [http://www.gnu.org/licenses/]. +"""This module contains an object that represents a Telegram Sent Web App Message.""" from telegram._telegramobject import TelegramObject from t...
https://raw.githubusercontent.com/python-telegram-bot/python-telegram-bot/HEAD/src/telegram/_sentwebappmessage.py
Generate NumPy-style docstrings
#!/usr/bin/env python # # A library that provides a Python interface to the Telegram Bot API # Copyright (C) 2015-2026 # Leandro Toledo de Souza <devs@python-telegram-bot.org> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser Public License as published by #...
--- +++ @@ -16,6 +16,7 @@ # # You should have received a copy of the GNU Lesser Public License # along with this program. If not, see [http://www.gnu.org/licenses/]. +"""This module contains the classes that represent Telegram InlineQueryResultLocation.""" import datetime as dtm from typing import TYPE_CHECKING,...
https://raw.githubusercontent.com/python-telegram-bot/python-telegram-bot/HEAD/src/telegram/_inline/inlinequeryresultlocation.py
Expand my code with proper documentation strings
#!/usr/bin/env python # # A library that provides a Python interface to the Telegram Bot API # Copyright (C) 2015-2026 # Leandro Toledo de Souza <devs@python-telegram-bot.org> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser Public License as published by #...
--- +++ @@ -16,12 +16,36 @@ # # You should have received a copy of the GNU Lesser Public License # along with this program. If not, see [http://www.gnu.org/licenses/]. +"""This module contains an object that represents a Telegram ShippingAddress.""" from telegram._telegramobject import TelegramObject from telegr...
https://raw.githubusercontent.com/python-telegram-bot/python-telegram-bot/HEAD/src/telegram/_payment/shippingaddress.py
Add docstrings that explain logic
#!/usr/bin/env python # # A library that provides a Python interface to the Telegram Bot API # Copyright (C) 2015-2026 # Leandro Toledo de Souza <devs@python-telegram-bot.org> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser Public License as published by #...
--- +++ @@ -16,6 +16,7 @@ # # You should have received a copy of the GNU Lesser Public License # along with this program. If not, see [http://www.gnu.org/licenses/]. +"""This module contains an object that represents a Telegram ShippingQuery.""" from collections.abc import Sequence from typing import TYPE_CHECKI...
https://raw.githubusercontent.com/python-telegram-bot/python-telegram-bot/HEAD/src/telegram/_payment/shippingquery.py
Add docstrings that explain logic
#!/usr/bin/env python # # A library that provides a Python interface to the Telegram Bot API # Copyright (C) 2015-2026 # Leandro Toledo de Souza <devs@python-telegram-bot.org> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser Public License as published by #...
--- +++ @@ -16,6 +16,7 @@ # # You should have received a copy of the GNU Lesser Public License # along with this program. If not, see [http://www.gnu.org/licenses/]. +"""This module contains objects that represent story areas.""" from typing import Final @@ -27,6 +28,42 @@ class StoryAreaPosition(TelegramObj...
https://raw.githubusercontent.com/python-telegram-bot/python-telegram-bot/HEAD/src/telegram/_storyarea.py
Generate docstrings with parameter types
#!/usr/bin/env python # # A library that provides a Python interface to the Telegram Bot API # Copyright (C) 2015-2026 # Leandro Toledo de Souza <devs@python-telegram-bot.org> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser Public License as published by #...
--- +++ @@ -16,12 +16,49 @@ # # You should have received a copy of the GNU Lesser Public License # along with this program. If not, see [http://www.gnu.org/licenses/]. +"""This module contains an object that represents a Telegram RefundedPayment.""" from telegram._telegramobject import TelegramObject from telegr...
https://raw.githubusercontent.com/python-telegram-bot/python-telegram-bot/HEAD/src/telegram/_payment/refundedpayment.py
Generate docstrings for script automation
#!/usr/bin/env python # # A library that provides a Python interface to the Telegram Bot API # Copyright (C) 2015-2026 # Leandro Toledo de Souza <devs@python-telegram-bot.org> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser Public License as published by #...
--- +++ @@ -16,12 +16,40 @@ # # You should have received a copy of the GNU Lesser Public License # along with this program. If not, see [http://www.gnu.org/licenses/]. +"""This module contains an object that represents a Telegram LabeledPrice.""" from telegram._telegramobject import TelegramObject from telegram....
https://raw.githubusercontent.com/python-telegram-bot/python-telegram-bot/HEAD/src/telegram/_payment/labeledprice.py
Add docstrings to my Python code
#!/usr/bin/env python # # A library that provides a Python interface to the Telegram Bot API # Copyright (C) 2015-2026 # Leandro Toledo de Souza <devs@python-telegram-bot.org> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser Public License as published by #...
--- +++ @@ -16,6 +16,7 @@ # # You should have received a copy of the GNU Lesser Public License # along with this program. If not, see [http://www.gnu.org/licenses/]. +"""This module contains two objects used for request chats/users service messages.""" from collections.abc import Sequence from typing import TYPE...
https://raw.githubusercontent.com/python-telegram-bot/python-telegram-bot/HEAD/src/telegram/_shared.py
Create structured documentation for my script
#!/usr/bin/env python # # A library that provides a Python interface to the Telegram Bot API # Copyright (C) 2015-2026 # Leandro Toledo de Souza <devs@python-telegram-bot.org> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser Public License as published by #...
--- +++ @@ -16,6 +16,7 @@ # # You should have received a copy of the GNU Lesser Public License # along with this program. If not, see [http://www.gnu.org/licenses/]. +"""This module contains an object that represents a Telegram MessageEntity.""" import copy import datetime as dtm @@ -39,6 +40,105 @@ class Me...
https://raw.githubusercontent.com/python-telegram-bot/python-telegram-bot/HEAD/src/telegram/_messageentity.py