From e6ebe6b334f8a600355ce48d013ec5e600f97c12 Mon Sep 17 00:00:00 2001 From: Lonami Exo Date: Tue, 20 Sep 2022 17:08:53 +0200 Subject: [PATCH] Replace mentions of master branch with v1 --- .github/ISSUE_TEMPLATE/bug-report.md | 4 +++- readthedocs/basic/installation.rst | 2 +- readthedocs/concepts/errors.rst | 2 +- readthedocs/quick-references/faq.rst | 2 +- telethon_examples/README.md | 20 ++++++++++---------- update-docs.sh | 2 +- 6 files changed, 17 insertions(+), 15 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/bug-report.md b/.github/ISSUE_TEMPLATE/bug-report.md index dc7a26c2..9420f6d8 100644 --- a/.github/ISSUE_TEMPLATE/bug-report.md +++ b/.github/ISSUE_TEMPLATE/bug-report.md @@ -8,9 +8,11 @@ assignees: '' --- **Checklist** + + * [ ] The error is in the library's code, and not in my own. * [ ] I have searched for this issue before posting it and there isn't a duplicate. -* [ ] I ran `pip install -U https://github.com/LonamiWebs/Telethon/archive/master.zip` and triggered the bug in the latest version. +* [ ] I ran `pip install -U https://github.com/LonamiWebs/Telethon/archive/v1.zip` and triggered the bug in the latest version. **Code that causes the issue** ```python diff --git a/readthedocs/basic/installation.rst b/readthedocs/basic/installation.rst index 2f8fa8ab..2c04d8c6 100644 --- a/readthedocs/basic/installation.rst +++ b/readthedocs/basic/installation.rst @@ -25,7 +25,7 @@ you can run the following command instead: .. code-block:: sh - python3 -m pip install --upgrade https://github.com/LonamiWebs/Telethon/archive/master.zip + python3 -m pip install --upgrade https://github.com/LonamiWebs/Telethon/archive/v1.zip .. note:: diff --git a/readthedocs/concepts/errors.rst b/readthedocs/concepts/errors.rst index 94aad1e3..5a847240 100644 --- a/readthedocs/concepts/errors.rst +++ b/readthedocs/concepts/errors.rst @@ -150,6 +150,6 @@ You can also except it and act as you prefer: VoIP numbers are very limited, and some countries are more limited too. -.. _list of known errors: https://github.com/LonamiWebs/Telethon/blob/master/telethon_generator/data/errors.csv +.. _list of known errors: https://github.com/LonamiWebs/Telethon/blob/v1/telethon_generator/data/errors.csv .. _raw API page: https://tl.telethon.dev/ .. _messages.sendMessage: https://tl.telethon.dev/methods/messages/send_message.html diff --git a/readthedocs/quick-references/faq.rst b/readthedocs/quick-references/faq.rst index df267b86..374205a1 100644 --- a/readthedocs/quick-references/faq.rst +++ b/readthedocs/quick-references/faq.rst @@ -239,4 +239,4 @@ file and run that, or use the normal ``python`` interpreter. .. _logging: https://docs.python.org/3/library/logging.html .. _@SpamBot: https://t.me/SpamBot .. _issue 297: https://github.com/LonamiWebs/Telethon/issues/297 -.. _quart_login.py: https://github.com/LonamiWebs/Telethon/tree/master/telethon_examples#quart_loginpy +.. _quart_login.py: https://github.com/LonamiWebs/Telethon/tree/v1/telethon_examples#quart_loginpy diff --git a/telethon_examples/README.md b/telethon_examples/README.md index 72b206bb..ee066cb4 100644 --- a/telethon_examples/README.md +++ b/telethon_examples/README.md @@ -136,7 +136,7 @@ assumes some [`asyncio`] knowledge, but otherwise is easy to follow. ![Screenshot of the tkinter GUI][tkinter GUI] -### [`payment.py`](https://raw.githubusercontent.com/LonamiWebs/Telethon/master/telethon_examples/payment.py) +### [`payment.py`](https://raw.githubusercontent.com/LonamiWebs/Telethon/v1/telethon_examples/payment.py) * Usable as: **bot**. * Difficulty: **medium**. @@ -150,18 +150,18 @@ It makes use of the ["raw API"](https://tl.telethon.dev) (that is, no friendly ` [Telethon]: https://github.com/LonamiWebs/Telethon -[CC0 License]: https://github.com/LonamiWebs/Telethon/blob/master/telethon_examples/LICENSE +[CC0 License]: https://github.com/LonamiWebs/Telethon/blob/v1/telethon_examples/LICENSE [@BotFather]: https://t.me/BotFather -[`assistant.py`]: https://raw.githubusercontent.com/LonamiWebs/Telethon/master/telethon_examples/assistant.py -[`quart_login.py`]: https://raw.githubusercontent.com/LonamiWebs/Telethon/master/telethon_examples/quart_login.py -[`gui.py`]: https://raw.githubusercontent.com/LonamiWebs/Telethon/master/telethon_examples/gui.py -[`interactive_telegram_client.py`]: https://raw.githubusercontent.com/LonamiWebs/Telethon/master/telethon_examples/interactive_telegram_client.py -[`print_messages.py`]: https://raw.githubusercontent.com/LonamiWebs/Telethon/master/telethon_examples/print_messages.py -[`print_updates.py`]: https://raw.githubusercontent.com/LonamiWebs/Telethon/master/telethon_examples/print_updates.py -[`replier.py`]: https://raw.githubusercontent.com/LonamiWebs/Telethon/master/telethon_examples/replier.py +[`assistant.py`]: https://raw.githubusercontent.com/LonamiWebs/Telethon/v1/telethon_examples/assistant.py +[`quart_login.py`]: https://raw.githubusercontent.com/LonamiWebs/Telethon/v1/telethon_examples/quart_login.py +[`gui.py`]: https://raw.githubusercontent.com/LonamiWebs/Telethon/v1/telethon_examples/gui.py +[`interactive_telegram_client.py`]: https://raw.githubusercontent.com/LonamiWebs/Telethon/v1/telethon_examples/interactive_telegram_client.py +[`print_messages.py`]: https://raw.githubusercontent.com/LonamiWebs/Telethon/v1/telethon_examples/print_messages.py +[`print_updates.py`]: https://raw.githubusercontent.com/LonamiWebs/Telethon/v1/telethon_examples/print_updates.py +[`replier.py`]: https://raw.githubusercontent.com/LonamiWebs/Telethon/v1/telethon_examples/replier.py [@TelethonianBot]: https://t.me/TelethonianBot [official Telethon's chat]: https://t.me/TelethonChat [`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 +[tkinter GUI]: https://raw.githubusercontent.com/LonamiWebs/Telethon/v1/telethon_examples/screenshot-gui.jpg [`events.NewMessage`]: https://docs.telethon.dev/en/stable/modules/events.html#telethon.events.newmessage.NewMessage diff --git a/update-docs.sh b/update-docs.sh index 4429c055..d3f6c2b0 100644 --- a/update-docs.sh +++ b/update-docs.sh @@ -11,4 +11,4 @@ mv /tmp/docs/* . git add constructors/ types/ methods/ index.html js/search.js css/ img/ git commit --amend -m "Update documentation" git push --force -git checkout master +git checkout v1