Skip to content

Commit 1ee8487

Browse files
committed
Merge branch 'develop' into types-revamp
# Conflicts: # pyrogram/client/methods/users/get_profile_photos.py
2 parents 4349373 + 10e5dbb commit 1ee8487

File tree

17 files changed

+316
-48
lines changed

17 files changed

+316
-48
lines changed

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ about: Create a bug report affecting the library
44
labels: "bug"
55
---
66

7-
<!-- WARNING: Ignoring this template will lead to the issue being closed as incomplete -->
7+
<!-- WARNING: Ignoring this template could lead to the issue being closed as incomplete -->
88

99
## Checklist
1010
- [ ] I am sure the error is coming from Pyrogram's code and not elsewhere.
@@ -15,7 +15,7 @@ labels: "bug"
1515
A clear and concise description of the problem.
1616

1717
## Steps to Reproduce
18-
[A minimal, complete and verifiable example](https://stackoverflow.com/help/mcve).
18+
[A minimal, reproducible example](https://stackoverflow.com/help/minimal-reproducible-example).
1919

2020
## Traceback
2121
The full traceback (if applicable).

.github/ISSUE_TEMPLATE/feature_request.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ about: Suggest ideas, new features or enhancements
44
labels: "enhancement"
55
---
66

7-
<!-- WARNING: Ignoring this template will lead to the issue being closed as incomplete -->
7+
<!-- WARNING: Ignoring this template could lead to the issue being closed as incomplete -->
88

99
## Checklist
1010
- [ ] I believe the idea is awesome and would benefit the library.

.github/ISSUE_TEMPLATE/question.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ title: For Q&A purposes, please read this template body
55
labels: "question"
66
---
77

8-
<!-- WARNING: Ignoring this template will lead to the issue being closed as incomplete -->
8+
<!-- WARNING: Ignoring this template could lead to the issue being closed as incomplete -->
99

1010
# Important
1111
This place is for issues about Pyrogram, it's **not a forum**.
1212

13-
If you'd like to post a question, please move to https://stackoverflow.com or join the Telegram community by following the description in https://t.me/pyrogram.
13+
If you'd like to post a question, please move to https://stackoverflow.com or join the Telegram community at https://t.me/pyrogram.
1414

1515
Thanks.

compiler/error/source/400_BAD_REQUEST.tsv

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,4 +99,10 @@ RESULT_ID_DUPLICATE The result contains items with duplicated identifiers
9999
ACCESS_TOKEN_INVALID The bot access token is invalid
100100
INVITE_HASH_EXPIRED The chat invite link is no longer valid
101101
USER_BANNED_IN_CHANNEL You are limited, check @SpamBot for details
102-
MESSAGE_EDIT_TIME_EXPIRED You can no longer edit this message
102+
MESSAGE_EDIT_TIME_EXPIRED You can no longer edit this message
103+
FOLDER_ID_INVALID The folder id is invalid
104+
MEGAGROUP_PREHISTORY_HIDDEN The action failed because the supergroup has the pre-history hidden
105+
CHAT_LINK_EXISTS The action failed because the supergroup is linked to a channel
106+
LINK_NOT_MODIFIED The chat link was not modified because you tried to link to the same target
107+
BROADCAST_ID_INVALID The channel is invalid
108+
MEGAGROUP_ID_INVALID The supergroup is invalid

docs/robots.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
11
User-agent: *
2+
23
Allow: /
4+
5+
Disallow: /dev/*
6+
Disallow: /old/*
7+
38
Sitemap: https://docs.pyrogram.org/sitemap.xml

docs/source/api/bound-methods.rst

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,24 @@ Message
5959
- :meth:`~Message.reply_video_note`
6060
- :meth:`~Message.reply_voice`
6161

62+
Chat
63+
^^^^
64+
65+
.. hlist::
66+
:columns: 2
67+
68+
- :meth:`~Chat.archive`
69+
- :meth:`~Chat.unarchive`
70+
71+
User
72+
^^^^
73+
74+
.. hlist::
75+
:columns: 2
76+
77+
- :meth:`~User.archive`
78+
- :meth:`~User.unarchive`
79+
6280
CallbackQuery
6381
^^^^^^^^^^^^^
6482

@@ -109,6 +127,14 @@ Details
109127
.. automethod:: Message.reply_video_note()
110128
.. automethod:: Message.reply_voice()
111129

130+
.. Chat
131+
.. automethod:: Chat.archive()
132+
.. automethod:: Chat.unarchive()
133+
134+
.. User
135+
.. automethod:: User.archive()
136+
.. automethod:: User.unarchive()
137+
112138
.. CallbackQuery
113139
.. automethod:: CallbackQuery.answer()
114140

docs/source/api/client.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,7 @@ This is the Client class. It exposes high-level methods for an easy access to th
1313
with app:
1414
app.send_message("me", "Hi!")
1515
16+
Details
17+
-------
18+
1619
.. autoclass:: pyrogram.Client()

docs/source/api/filters.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
Update Filters
22
==============
33

4+
Details
5+
-------
6+
47
.. autoclass:: pyrogram.Filters
58
:members:

docs/source/api/methods.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,8 @@ Chats
104104
- :meth:`~Client.get_dialogs_count`
105105
- :meth:`~Client.restrict_chat`
106106
- :meth:`~Client.update_chat_username`
107+
- :meth:`~Client.archive_chats`
108+
- :meth:`~Client.unarchive_chats`
107109

108110
Users
109111
^^^^^
@@ -233,6 +235,8 @@ Details
233235
.. automethod:: Client.get_dialogs_count()
234236
.. automethod:: Client.restrict_chat()
235237
.. automethod:: Client.update_chat_username()
238+
.. automethod:: Client.archive_chats()
239+
.. automethod:: Client.unarchive_chats()
236240

237241
.. Users
238242
.. automethod:: Client.get_me()

docs/source/license.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ About the License
22
=================
33

44
.. image:: https://www.gnu.org/graphics/lgplv3-with-text-154x68.png
5-
:align: left
5+
:align: right
66

77
Pyrogram is free software and is currently licensed under the terms of the
88
`GNU Lesser General Public License v3 or later (LGPLv3+)`_. In short: you may use, redistribute and/or modify it

0 commit comments

Comments
 (0)