diff --git a/client/src/telethon/_impl/client/client/client.py b/client/src/telethon/_impl/client/client/client.py index 3ce81cbb..28fac892 100644 --- a/client/src/telethon/_impl/client/client/client.py +++ b/client/src/telethon/_impl/client/client/client.py @@ -172,7 +172,7 @@ class Client: :param flood_sleep_threshold: Maximum amount of time, in seconds, to automatically sleep before retrying a request. - This sleeping occurs when ``FLOOD_WAIT`` (and similar) :class:`~telethon.RpcError`\ s are raised by Telegram. + This sleeping occurs when ``FLOOD_WAIT`` (and similar) :class:`~telethon.RpcError`\\ s are raised by Telegram. :param logger: Logger for the client. diff --git a/client/src/telethon/_impl/client/events/filters/combinators.py b/client/src/telethon/_impl/client/events/filters/combinators.py index a98870e1..050ff830 100644 --- a/client/src/telethon/_impl/client/events/filters/combinators.py +++ b/client/src/telethon/_impl/client/events/filters/combinators.py @@ -95,12 +95,12 @@ class All(Combinable): from telethon.events.filters import All, Command, Text - @bot.on(events.NewMessage, All(Command('/start'), Text(r'\bdata:\w+'))) + @bot.on(events.NewMessage, All(Command('/start'), Text(r'\\bdata:\\w+'))) async def handler(event): ... # equivalent to: - @bot.on(events.NewMessage, Command('/start') & Text(r'\bdata:\w+')) + @bot.on(events.NewMessage, Command('/start') & Text(r'\\bdata:\\w+')) async def handler(event): ... :param filter1: The first filter to check. diff --git a/client/src/telethon/_impl/client/events/queries.py b/client/src/telethon/_impl/client/events/queries.py index 074cf812..fc58b576 100644 --- a/client/src/telethon/_impl/client/events/queries.py +++ b/client/src/telethon/_impl/client/events/queries.py @@ -14,7 +14,7 @@ if TYPE_CHECKING: class ButtonCallback(Event): """ - Occurs when the user :meth:`~telethon.types.buttons.Callback.click`\ s a :class:`~telethon.types.buttons.Callback` button. + Occurs when the user :meth:`~telethon.types.buttons.Callback.click`\\ s a :class:`~telethon.types.buttons.Callback` button. Only bot accounts can receive this event, because only bots can send :class:`~telethon.types.buttons.Callback` buttons. """ diff --git a/client/src/telethon/_impl/client/types/async_list.py b/client/src/telethon/_impl/client/types/async_list.py index b93256b7..ff491d73 100644 --- a/client/src/telethon/_impl/client/types/async_list.py +++ b/client/src/telethon/_impl/client/types/async_list.py @@ -25,7 +25,7 @@ class AsyncList(abc.ABC, Generic[T]): .. rubric:: Example - :meth:`telethon.Client.get_messages` returns an :class:`AsyncList`\ [:class:`Message`]. + :meth:`telethon.Client.get_messages` returns an :class:`AsyncList`\\ [:class:`Message`]. This means: .. code-block:: python diff --git a/client/src/telethon/_impl/mtsender/sender.py b/client/src/telethon/_impl/mtsender/sender.py index 1b56340a..1a470910 100644 --- a/client/src/telethon/_impl/mtsender/sender.py +++ b/client/src/telethon/_impl/mtsender/sender.py @@ -96,7 +96,7 @@ class Connector(Protocol): * The ``ip`` address as a :class:`str`. This might be either a IPv4 or IPv6. * The ``port`` as a :class:`int`. This will be a number below 2¹⁶, often 443. - and returns a :class:`tuple`\ [:class:`AsyncReader`, :class:`AsyncWriter`]. + and returns a :class:`tuple`\\ [:class:`AsyncReader`, :class:`AsyncWriter`]. You can use a custom connector to connect to Telegram through proxies. The library will only ever open remote connections through this function.