mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2024-11-21 17:06:36 +03:00
Point to the new domains
This commit is contained in:
parent
c3d1d7a64c
commit
80f19bd1f0
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
<https://docs.python.org/3/library/functions.html#isinstance>`_
|
||||
|
|
|
@ -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 ------------------------------------------------
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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?
|
||||
|
|
|
@ -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 <https://lonamiwebs.github.io/Telethon/>`_ now shows
|
||||
- The `method reference <https://tl.telethon.dev/>`_ now shows
|
||||
which methods can be used if you sign in with a ``bot_token``.
|
||||
- There's a new `client.disconnected
|
||||
<telethon.client.telegrambaseclient.TelegramBaseClient.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 <https://lonamiwebs.github.io/Telethon/types/input_peer.html>`__.
|
||||
`InputPeer <https://tl.telethon.dev/types/input_peer.html>`__.
|
||||
There also exist
|
||||
`InputChannel <https://lonamiwebs.github.io/Telethon/types/input_channel.html>`__
|
||||
`InputChannel <https://tl.telethon.dev/types/input_channel.html>`__
|
||||
and
|
||||
`InputUser <https://lonamiwebs.github.io/Telethon/types/input_user.html>`__!
|
||||
`InputUser <https://tl.telethon.dev/types/input_user.html>`__!
|
||||
You don't have to worry about those anymore, it's handled internally
|
||||
now.
|
||||
|
||||
|
@ -3047,7 +3047,7 @@ Additions
|
|||
~~~~~~~~~
|
||||
|
||||
- The **documentation**, available online
|
||||
`here <https://lonamiwebs.github.io/Telethon/>`__, has a new search bar.
|
||||
`here <https://tl.telethon.dev/>`__, has a new search bar.
|
||||
- Better **cross-thread safety** by using ``threading.Event``.
|
||||
- More improvements for running Telethon during a **long period of time**.
|
||||
|
||||
|
|
|
@ -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 <https://lonamiwebs.github.io/Telethon/>`__,
|
||||
`look for the method you need <https://tl.telethon.dev/>`__,
|
||||
you will end up on the `Wall of
|
||||
Shame <https://github.com/LonamiWebs/Telethon/issues?q=is%3Aissue+label%3ARTFM+is%3Aclosed>`__,
|
||||
i.e. all issues labeled
|
||||
|
|
|
@ -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)
|
||||
)
|
||||
|
|
|
@ -86,7 +86,7 @@ class ChatAction(EventBuilder):
|
|||
Represents the event of a new chat action.
|
||||
|
||||
Members:
|
||||
action_message (`MessageAction <https://lonamiwebs.github.io/Telethon/types/message_action.html>`_):
|
||||
action_message (`MessageAction <https://tl.telethon.dev/types/message_action.html>`_):
|
||||
The message invoked by this Chat Action.
|
||||
|
||||
new_pin (`bool`):
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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.'
|
||||
)
|
||||
|
||||
|
|
|
@ -59,7 +59,7 @@ users.getUsers#0d91a548 id:Vector<InputUser> = Vector<User></pre>
|
|||
<p>This is <b>not</b> 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
|
||||
<a href="https://telethon.readthedocs.io/en/latest/developing/understanding-the-type-language.html">Understanding
|
||||
<a href="https://docs.telethon.dev/en/latest/developing/understanding-the-type-language.html">Understanding
|
||||
the Type Language</a> for more details on it.</p>
|
||||
|
||||
<h3>Index</h3>
|
||||
|
@ -175,7 +175,7 @@ users.getUsers#0d91a548 id:Vector<InputUser> = Vector<User></pre>
|
|||
not always run. They are just there to show the right syntax.</p>
|
||||
|
||||
<p>You should check out
|
||||
<a href="https://telethon.readthedocs.io/en/latest/concepts/full-api.html">how
|
||||
<a href="https://docs.telethon.dev/en/latest/concepts/full-api.html">how
|
||||
to access the full API</a> in ReadTheDocs.
|
||||
</p>
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue
Block a user