2
0
mirror of https://github.com/pyrogram/pyrogram synced 2025-08-24 02:47:29 +00:00

Remove "0x" prefix from IDs in the documentation

This commit is contained in:
Dan 2022-04-27 09:56:48 +02:00
parent 32b3452e76
commit 295060d190

View File

@ -378,7 +378,7 @@ def start(format: bool = False):
else:
docstring += f"Telegram API method.\n\n"
docstring += f" Details:\n - Layer: ``{layer}``\n - ID: ``{c.id}``\n\n"
docstring += f" Details:\n - Layer: ``{layer}``\n - ID: ``{c.id[2:].upper()}``\n\n"
if docstring_args:
docstring += " Parameters:\n " + "\n ".join(docstring_args)