Skip to content
This repository was archived by the owner on Dec 23, 2024. It is now read-only.

Commit 5e9d492

Browse files
Update Pyrogram to v2.0.99
1 parent f2d49fc commit 5e9d492

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+1116
-717
lines changed

.github/ISSUE_TEMPLATE/bug_report.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ body:
44
- type: checkboxes
55
attributes:
66
label: Checklist
7+
description: Invalid, incomplete or inadequate issue reports may not be taken into consideration
78
options:
89
- label: I am sure the error is coming from Pyrogram's code and not elsewhere
910
required: true
@@ -34,7 +35,7 @@ body:
3435
- type: textarea
3536
attributes:
3637
label: Code example
37-
description: Provide a [minimal, reproducible](https://stackoverflow.com/help/minimal-reproducible-example) and properly formatted example (if applicable)
38+
description: Provide a [minimal, complete, consistently reproducible](https://stackoverflow.com/help/minimal-reproducible-example) and properly formatted example involving normal usages (if applicable)
3839
placeholder: |
3940
from pyrogram import Client
4041
...

Makefile

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
VENV := venv
22
PYTHON := $(VENV)/bin/python
33
HOST = $(shell ifconfig | grep "inet " | tail -1 | cut -d\ -f2)
4+
TAG = v$(shell grep -E '__version__ = ".*"' pyrogram/__init__.py | cut -d\" -f2)
45

56
RM := rm -rf
67

@@ -30,4 +31,12 @@ api:
3031
build:
3132
make clean
3233
$(PYTHON) setup.py sdist
33-
$(PYTHON) setup.py bdist_wheel
34+
$(PYTHON) setup.py bdist_wheel
35+
36+
tag:
37+
git tag $(TAG)
38+
git push origin $(TAG)
39+
40+
dtag:
41+
git tag -d $(TAG)
42+
git push origin -d $(TAG)

compiler/api/source/main_api.tl

Lines changed: 98 additions & 39 deletions
Large diffs are not rendered by default.

compiler/errors/source/400_BAD_REQUEST.tsv

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ BOT_INLINE_DISABLED The inline feature of the bot is disabled
2828
BOT_INVALID This is not a valid bot
2929
BOT_METHOD_INVALID The method can't be used by bots
3030
BOT_MISSING This method can only be run by a bot
31+
BOT_ONESIDE_NOT_AVAIL Bots can't pin messages for one side only in private chats
3132
BOT_PAYMENTS_DISABLED This method can only be run by a bot
3233
BOT_POLLS_DISABLED Sending polls by bots has been disabled
3334
BOT_RESPONSE_TIMEOUT The bot did not answer to the callback query in time
@@ -38,6 +39,7 @@ BROADCAST_REQUIRED The request can only be used with a channel
3839
BUTTON_DATA_INVALID The button callback data is invalid or too large
3940
BUTTON_TYPE_INVALID The type of one of the buttons you provided is invalid
4041
BUTTON_URL_INVALID The button url is invalid
42+
BUTTON_USER_PRIVACY_RESTRICTED The privacy settings of the user specified in a keyboard button do not allow creating such button
4143
CALL_ALREADY_ACCEPTED The call is already accepted
4244
CALL_ALREADY_DECLINED The call is already declined
4345
CALL_PEER_INVALID The provided call peer object is invalid
@@ -100,6 +102,7 @@ ENCRYPTION_ALREADY_DECLINED The secret chat is already declined
100102
ENCRYPTION_DECLINED The secret chat was declined
101103
ENCRYPTION_ID_INVALID The provided secret chat id is invalid
102104
ENTITIES_TOO_LONG The entity provided contains data that is too long, or you passed too many entities to this message
105+
ENTITY_BOUNDS_INVALID The message entity bounds are invalid
103106
ENTITY_MENTION_USER_INVALID The mentioned entity is not an user
104107
ERROR_TEXT_EMPTY The provided error message is empty
105108
EXPIRE_DATE_INVALID The expiration date is invalid
@@ -153,6 +156,7 @@ INPUT_USER_DEACTIVATED The target user has been deleted/deactivated
153156
INVITE_HASH_EMPTY The invite hash is empty
154157
INVITE_HASH_EXPIRED The chat invite link is no longer valid
155158
INVITE_HASH_INVALID The invite link hash is invalid
159+
INVITE_REQUEST_SENT The request to join this chat or channel has been successfully sent
156160
INVITE_REVOKED_MISSING The action required a chat invite link to be revoked first
157161
LANG_PACK_INVALID The provided language pack is invalid
158162
LASTNAME_INVALID The last name is invalid
@@ -296,8 +300,8 @@ STICKER_INVALID The provided sticker is invalid
296300
STICKER_PNG_DIMENSIONS The sticker png dimensions are invalid
297301
STICKER_PNG_NOPNG Stickers must be png files but the provided image was not a png
298302
STICKER_TGS_NOTGS A tgs sticker file was expected, but something else was provided
299-
STICKER_VIDEO_NOWEBM A webm video file was expected, but something else was provided
300303
STICKER_THUMB_PNG_NOPNG A png sticker thumbnail file was expected, but something else was provided
304+
STICKER_VIDEO_NOWEBM A webm video file was expected, but something else was provided
301305
TAKEOUT_INVALID The takeout id is invalid
302306
TAKEOUT_REQUIRED The method must be invoked inside a takeout session
303307
TEMP_AUTH_KEY_EMPTY The temporary auth key provided is empty
@@ -340,6 +344,7 @@ USER_NOT_MUTUAL_CONTACT The user is not a mutual contact
340344
USER_NOT_PARTICIPANT The user is not a member of this chat
341345
VIDEO_CONTENT_TYPE_INVALID The video content type is invalid (i.e.: not streamable)
342346
VIDEO_FILE_INVALID The video file is invalid
347+
VOICE_MESSAGES_FORBIDDEN Voice messages are restricted
343348
VOLUME_LOC_NOT_FOUND The volume location can't be found
344349
WALLPAPER_FILE_INVALID The provided file cannot be used as a wallpaper
345350
WALLPAPER_INVALID The input wallpaper was not valid
@@ -352,5 +357,4 @@ WEBDOCUMENT_URL_EMPTY The web document URL is empty
352357
WEBDOCUMENT_URL_INVALID The web document URL is invalid
353358
WEBPAGE_CURL_FAILED Telegram server could not fetch the provided URL
354359
WEBPAGE_MEDIA_EMPTY The URL doesn't contain any valid media
355-
YOU_BLOCKED_USER You blocked this user
356-
ENTITY_BOUNDS_INVALID The message entity bounds are invalid
360+
YOU_BLOCKED_USER You blocked this user

compiler/errors/source/403_FORBIDDEN.tsv

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ INLINE_BOT_REQUIRED The action must be performed through an inline bot callback
1515
MESSAGE_AUTHOR_REQUIRED You are not the author of this message
1616
MESSAGE_DELETE_FORBIDDEN You don't have rights to delete messages in this chat, most likely because you are not the author of them
1717
POLL_VOTE_REQUIRED Cast a vote in the poll before calling this method
18+
PREMIUM_ACCOUNT_REQUIRED This action requires a premium account
1819
RIGHT_FORBIDDEN You don't have enough rights for this action, or you tried to set one or more admin rights that can't be applied to this kind of chat (channel or supergroup)
1920
SENSITIVE_CHANGE_FORBIDDEN Your sensitive content settings can't be changed at this time
2021
TAKEOUT_REQUIRED The method must be invoked inside a takeout session
@@ -24,5 +25,4 @@ USER_INVALID The provided user is invalid
2425
USER_IS_BLOCKED The user is blocked
2526
USER_NOT_MUTUAL_CONTACT The provided user is not a mutual contact
2627
USER_PRIVACY_RESTRICTED The user's privacy settings is preventing you to perform this action
27-
USER_RESTRICTED You are limited/restricted. You can't perform this action
28-
PREMIUM_ACCOUNT_REQUIRED This action requires a premium account
28+
USER_RESTRICTED You are limited/restricted. You can't perform this action

pyrogram/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
# You should have received a copy of the GNU Lesser General Public License
1717
# along with Pyrogram. If not, see <http://www.gnu.org/licenses/>.
1818

19-
__version__ = "2.0.61"
19+
__version__ = "2.0.99"
2020
__license__ = "GNU Lesser General Public License v3.0 (LGPL-3.0)"
2121
__copyright__ = "Copyright (C) 2017-present Dan <https://github.com/delivrance>"
2222

0 commit comments

Comments
 (0)