From fbce902cf8e7d2b1698a1f39dd0607c20542b2e0 Mon Sep 17 00:00:00 2001 From: Lonami Exo Date: Thu, 9 May 2019 14:13:43 +0200 Subject: [PATCH] Fix minor documentation issue regarding pre tags --- readthedocs/index.rst | 1 + telethon/client/messages.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/readthedocs/index.rst b/readthedocs/index.rst index 1d2847c4..c042709f 100644 --- a/readthedocs/index.rst +++ b/readthedocs/index.rst @@ -114,3 +114,4 @@ You can also use the menu on the left to quickly skip over sections. modules/errors modules/sessions modules/network + modules/helpers diff --git a/telethon/client/messages.py b/telethon/client/messages.py index 473d6ddb..a0884163 100644 --- a/telethon/client/messages.py +++ b/telethon/client/messages.py @@ -616,7 +616,7 @@ class MessageMethods(UploadMethods, ButtonMethods, MessageParseMethods): client.send_message('me', 'Some bold and italic text') client.send_message('me', 'An URL') - client.send_message('me', 'code and
pre\nblocks
') + # code and pre tags also work, but those break the documentation :) client.send_message('me', 'Mentions') # Explicit parse mode