diff --git a/README.rst b/README.rst
index 7364e32f..f1eb902c 100755
--- a/README.rst
+++ b/README.rst
@@ -75,8 +75,8 @@ useful information.
.. _asyncio: https://docs.python.org/3/library/asyncio.html
.. _MTProto: https://core.telegram.org/mtproto
.. _Telegram: https://telegram.org
-.. _Compatibility and Convenience: https://telethon.readthedocs.io/en/latest/misc/compatibility-and-convenience.html
-.. _Read The Docs: https://telethon.readthedocs.io
+.. _Compatibility and Convenience: https://docs.telethon.dev/en/latest/misc/compatibility-and-convenience.html
+.. _Read The Docs: https://docs.telethon.dev
.. |logo| image:: logo.svg
:width: 24pt
diff --git a/readthedocs/concepts/full-api.rst b/readthedocs/concepts/full-api.rst
index e7c86b56..2b1a6462 100644
--- a/readthedocs/concepts/full-api.rst
+++ b/readthedocs/concepts/full-api.rst
@@ -20,7 +20,7 @@ of everything you can do.
.. note::
- The reason to keep both https://lonamiwebs.github.io/Telethon and this
+ The reason to keep both https://tl.telethon.dev and this
documentation alive is that the former allows instant search results
as you type, and a "Copy import" button. If you like namespaces, you
can also do ``from telethon.tl import types, functions``. Both work.
@@ -224,6 +224,6 @@ and still access the successful results:
# The second request failed.
second = e.exceptions[1]
-.. _check the documentation: https://lonamiwebs.github.io/Telethon
-.. _method you need: https://lonamiwebs.github.io/Telethon/methods/index.html
-.. _use the search: https://lonamiwebs.github.io/Telethon/?q=message&redirect=no
+.. _check the documentation: https://tl.telethon.dev
+.. _method you need: https://tl.telethon.dev/methods/index.html
+.. _use the search: https://tl.telethon.dev/?q=message&redirect=no
diff --git a/readthedocs/concepts/strings.rst b/readthedocs/concepts/strings.rst
index f6f3812e..c88d6940 100644
--- a/readthedocs/concepts/strings.rst
+++ b/readthedocs/concepts/strings.rst
@@ -86,7 +86,7 @@ the ``was_online`` time. It's inside ``status``:
online_at = user.status.was_online
You don't need to print everything to see what all the possible values
-can be. You can just search in http://lonamiwebs.github.io/Telethon/.
+can be. You can just search in http://tl.telethon.dev/.
Remember that you can use Python's `isinstance
`_
diff --git a/readthedocs/conf.py b/readthedocs/conf.py
index c8e52431..f7de1d4b 100644
--- a/readthedocs/conf.py
+++ b/readthedocs/conf.py
@@ -26,7 +26,7 @@ sys.path.insert(0, os.path.abspath(os.pardir))
root = os.path.abspath(os.path.join(__file__, os.path.pardir, os.path.pardir))
-tl_ref_url = 'https://lonamiwebs.github.io/Telethon'
+tl_ref_url = 'https://tl.telethon.dev'
# -- General configuration ------------------------------------------------
diff --git a/readthedocs/examples/chats-and-channels.rst b/readthedocs/examples/chats-and-channels.rst
index c764d2b7..98bfdc07 100644
--- a/readthedocs/examples/chats-and-channels.rst
+++ b/readthedocs/examples/chats-and-channels.rst
@@ -37,7 +37,7 @@ to, you can make use of the :tl:`JoinChannelRequest` to join such channel:
For more on channels, check the `channels namespace`__.
-__ https://lonamiwebs.github.io/Telethon/methods/channels/index.html
+__ https://tl.telethon.dev/methods/channels/index.html
Joining a private chat or channel
@@ -224,7 +224,7 @@ is enough:
__ https://github.com/Kyle2142
__ https://github.com/LonamiWebs/Telethon/issues/490
-__ https://lonamiwebs.github.io/Telethon/constructors/channel_admin_rights.html
+__ https://tl.telethon.dev/constructors/channel_admin_rights.html
Increasing View Count in a Channel
diff --git a/readthedocs/index.rst b/readthedocs/index.rst
index 728a4b68..9f28deda 100644
--- a/readthedocs/index.rst
+++ b/readthedocs/index.rst
@@ -22,7 +22,7 @@ Telethon's Documentation
* Did you upgrade the library? Please read :ref:`changelog`.
* Used Telethon before v1.0? See :ref:`compatibility-and-convenience`.
* Coming from Bot API or want to create new bots? See :ref:`botapi`.
-* Need the full API reference? https://lonamiwebs.github.io/Telethon/.
+* Need the full API reference? https://tl.telethon.dev/.
What is this?
diff --git a/readthedocs/misc/changelog.rst b/readthedocs/misc/changelog.rst
index a2a649fb..de58fa32 100644
--- a/readthedocs/misc/changelog.rst
+++ b/readthedocs/misc/changelog.rst
@@ -292,7 +292,7 @@ Enhancements
* Saner timeout defaults for conversations.
* ``Path``-like files are now supported for thumbnails.
* Added new hot-keys to the online documentation at
- https://lonamiwebs.github.io/Telethon/ such as ``/`` to search.
+ https://tl.telethon.dev/ such as ``/`` to search.
Press ``?`` to view them all.
@@ -1209,7 +1209,7 @@ Additions
- Telegram's Terms Of Service are now accepted when creating a new account.
This can possibly help avoid bans. This has no effect for accounts that
were created before.
-- The `method reference `_ now shows
+- The `method reference `_ now shows
which methods can be used if you sign in with a ``bot_token``.
- There's a new `client.disconnected
` future
@@ -1347,7 +1347,7 @@ Additions
- New default `telethon.telegram_client.TelegramClient.parse_mode`.
- You can edit the media of messages that already have some media.
- New dark theme in the online ``tl`` reference, check it out at
- https://lonamiwebs.github.io/Telethon/.
+ https://tl.telethon.dev/.
Bug fixes
~~~~~~~~~
@@ -1450,7 +1450,7 @@ Now you can use Python's ``pickle`` module to serialize ``RPCError`` and
any other ``TLObject`` thanks to **@vegeta1k95**! A fix that was fairly
simple, but still might be useful for many people.
-As a side note, the documentation at https://lonamiwebs.github.io/Telethon
+As a side note, the documentation at https://tl.telethon.dev
now lists known ``RPCError`` for all requests, so you know what to expect.
This required a major rewrite, but it was well worth it!
@@ -1809,7 +1809,7 @@ Enhancements
- ``client.send_file()`` now accepts ``Message``'s and
``MessageMedia``'s as the ``file`` parameter.
- Some documentation updates and fixed to clarify certain things.
-- New exact match feature on https://lonamiwebs.github.io/Telethon.
+- New exact match feature on https://tl.telethon.dev.
- Return as early as possible from ``.get_input_entity()`` and similar,
to avoid penalizing you for doing this right.
@@ -2793,11 +2793,11 @@ get_input_* everywhere (v0.11.4)
*Published at 2017/07/10*
For some reason, Telegram doesn't have enough with the
-`InputPeer `__.
+`InputPeer `__.
There also exist
-`InputChannel `__
+`InputChannel `__
and
-`InputUser `__!
+`InputUser `__!
You don't have to worry about those anymore, it's handled internally
now.
@@ -3047,7 +3047,7 @@ Additions
~~~~~~~~~
- The **documentation**, available online
- `here `__, has a new search bar.
+ `here `__, has a new search bar.
- Better **cross-thread safety** by using ``threading.Event``.
- More improvements for running Telethon during a **long period of time**.
diff --git a/readthedocs/misc/wall-of-shame.rst b/readthedocs/misc/wall-of-shame.rst
index a27a9f53..87be0464 100644
--- a/readthedocs/misc/wall-of-shame.rst
+++ b/readthedocs/misc/wall-of-shame.rst
@@ -10,7 +10,7 @@ library. Said section is **not** for issues on *your* program but rather
issues with Telethon itself.
If you have not made the effort to 1. read through the docs and 2.
-`look for the method you need `__,
+`look for the method you need `__,
you will end up on the `Wall of
Shame `__,
i.e. all issues labeled
diff --git a/telethon/client/users.py b/telethon/client/users.py
index 99c24085..7bcd0ec0 100644
--- a/telethon/client/users.py
+++ b/telethon/client/users.py
@@ -415,7 +415,7 @@ class UserMethods(TelegramBaseClient):
raise ValueError(
'Could not find the input entity for {!r}. Please read https://'
- 'telethon.readthedocs.io/en/latest/concepts/entities.html to'
+ 'docs.telethon.dev/en/latest/concepts/entities.html to'
' find out more details.'
.format(peer)
)
diff --git a/telethon/events/chataction.py b/telethon/events/chataction.py
index 4ed54519..ea92dc23 100644
--- a/telethon/events/chataction.py
+++ b/telethon/events/chataction.py
@@ -86,7 +86,7 @@ class ChatAction(EventBuilder):
Represents the event of a new chat action.
Members:
- action_message (`MessageAction `_):
+ action_message (`MessageAction `_):
The message invoked by this Chat Action.
new_pin (`bool`):
diff --git a/telethon_examples/README.md b/telethon_examples/README.md
index 4ba826fb..3cab7322 100644
--- a/telethon_examples/README.md
+++ b/telethon_examples/README.md
@@ -121,4 +121,4 @@ assumes some [`asyncio`] knowledge, but otherwise is easy to follow.
[`asyncio`]: https://docs.python.org/3/library/asyncio.html
[`tkinter`]: https://docs.python.org/3/library/tkinter.html
[tkinter GUI]: https://raw.githubusercontent.com/LonamiWebs/Telethon/master/telethon_examples/screenshot-gui.jpg
-[`events.NewMessage`]: https://telethon.readthedocs.io/en/latest/modules/events.html#telethon.events.newmessage.NewMessage
+[`events.NewMessage`]: https://docs.telethon.dev/en/latest/modules/events.html#telethon.events.newmessage.NewMessage
diff --git a/telethon_examples/assistant.py b/telethon_examples/assistant.py
index cf1d8723..51597cc9 100644
--- a/telethon_examples/assistant.py
+++ b/telethon_examples/assistant.py
@@ -42,7 +42,7 @@ bot = TelegramClient(NAME, API_ID, API_HASH)
WELCOME = {
-1001109500936:
'Hi and welcome to the group. Before asking any questions, **please** '
- 'read [the docs](https://telethon.readthedocs.io/). Make sure you are '
+ 'read [the docs](https://docs.telethon.dev/). Make sure you are '
'using the latest version with `pip3 install -U telethon`, since most '
'problems have already been fixed in newer versions.',
@@ -53,20 +53,20 @@ WELCOME = {
}
READ_FULL = (
- 'Please read [Accessing the Full API](https://telethon.readthedocs.io'
+ 'Please read [Accessing the Full API](https://docs.telethon.dev'
'/en/latest/concepts/full-api.html)'
)
SEARCH = (
'Remember [search is your friend]'
- '(https://lonamiwebs.github.io/Telethon/?q={}&redirect=no)'
+ '(https://tl.telethon.dev/?q={}&redirect=no)'
)
-DOCS = 'TL Reference for [{}](https://lonamiwebs.github.io/Telethon/?q={})'
-RTD = '[Read The Docs!](https://telethon.readthedocs.io)'
-RTFD = '[Read The F* Docs!](https://telethon.readthedocs.io)'
+DOCS = 'TL Reference for [{}](https://tl.telethon.dev/?q={})'
+RTD = '[Read The Docs!](https://docs.telethon.dev)'
+RTFD = '[Read The F* Docs!](https://docs.telethon.dev)'
UPDATES = (
- 'Check out [Working with Updates](https://telethon.readthedocs.io'
+ 'Check out [Working with Updates](https://docs.telethon.dev'
'/en/latest/basic/updates.html) in the documentation.'
)
diff --git a/telethon_generator/data/html/core.html b/telethon_generator/data/html/core.html
index cf759b85..dc24007d 100644
--- a/telethon_generator/data/html/core.html
+++ b/telethon_generator/data/html/core.html
@@ -59,7 +59,7 @@ users.getUsers#0d91a548 id:Vector<InputUser> = Vector<User>
This is not Python code. It's the "TL definition". It's
an easy-to-read line that gives a quick overview on the parameters
and its result. You don't need to worry about this. See
- Understanding
+ Understanding
the Type Language for more details on it.
Index
@@ -175,7 +175,7 @@ users.getUsers#0d91a548 id:Vector<InputUser> = Vector<User>
not always run. They are just there to show the right syntax.
You should check out
- how
+ how
to access the full API in ReadTheDocs.