pyrogrammod 2.1.3__py3-none-any.whl → 2.1.4__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- pyrogram/__init__.py +1 -1
- pyrogram/methods/advanced/save_file.py +1 -4
- {pyrogrammod-2.1.3.dist-info → pyrogrammod-2.1.4.dist-info}/METADATA +1 -1
- {pyrogrammod-2.1.3.dist-info → pyrogrammod-2.1.4.dist-info}/RECORD +9 -9
- {pyrogrammod-2.1.3.dist-info → pyrogrammod-2.1.4.dist-info}/COPYING +0 -0
- {pyrogrammod-2.1.3.dist-info → pyrogrammod-2.1.4.dist-info}/COPYING.lesser +0 -0
- {pyrogrammod-2.1.3.dist-info → pyrogrammod-2.1.4.dist-info}/NOTICE +0 -0
- {pyrogrammod-2.1.3.dist-info → pyrogrammod-2.1.4.dist-info}/WHEEL +0 -0
- {pyrogrammod-2.1.3.dist-info → pyrogrammod-2.1.4.dist-info}/top_level.txt +0 -0
pyrogram/__init__.py
CHANGED
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
# You should have received a copy of the GNU Lesser General Public License
|
|
17
17
|
# along with Pyrogram. If not, see <http://www.gnu.org/licenses/>.
|
|
18
18
|
|
|
19
|
-
__version__ = "2.1.
|
|
19
|
+
__version__ = "2.1.4"
|
|
20
20
|
__license__ = "GNU Lesser General Public License v3.0 (LGPL-3.0)"
|
|
21
21
|
__copyright__ = "Copyright (C) 2017-present Dan <https://github.com/delivrance>"
|
|
22
22
|
|
|
@@ -128,10 +128,7 @@ class SaveFile:
|
|
|
128
128
|
if file_size == 0:
|
|
129
129
|
raise ValueError("File size equals to 0 B")
|
|
130
130
|
|
|
131
|
-
|
|
132
|
-
file_size_limit_mib = 2000
|
|
133
|
-
if self.me and self.me.is_premium:
|
|
134
|
-
file_size_limit_mib = 4000
|
|
131
|
+
file_size_limit_mib = 4000 if self.me and self.me.is_premium else 2000
|
|
135
132
|
|
|
136
133
|
if file_size > file_size_limit_mib * 1024 * 1024:
|
|
137
134
|
raise ValueError(f"Can't upload files bigger than {file_size_limit_mib} MiB")
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: pyrogrammod
|
|
3
|
-
Version: 2.1.
|
|
3
|
+
Version: 2.1.4
|
|
4
4
|
Summary: Modified version of the Pyrogram Telegram MTProto API framework in Python for users and bots.
|
|
5
5
|
Home-page: https://github.com/PyrogramMod/PyrogramMod
|
|
6
6
|
Download-URL: https://github.com/PyrogramMod/PyrogramMod/releases/latest
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
pyrogram/__init__.py,sha256=
|
|
1
|
+
pyrogram/__init__.py,sha256=T83zzGtXUbwLaxFO0Bi1t6BOUPED5dSPptir2NcqMdM,1399
|
|
2
2
|
pyrogram/client.py,sha256=lN7hFqvtzzaPB6Kr7imumb2LRaVt7LhPTP6QTz5vewo,49949
|
|
3
3
|
pyrogram/dispatcher.py,sha256=yWshlu3R24vNwYMEzibC-mYOwr3JCu9HG9XTFksXGj4,10149
|
|
4
4
|
pyrogram/emoji.py,sha256=ixb3OXR1XpLf3BQpw8kWIpmbQRowRIaFedjdnuzljac,208021
|
|
@@ -69,7 +69,7 @@ pyrogram/methods/__init__.py,sha256=6PpIkjIGLQ_e50nySmI2yjLPym5TGz1YIkHFRUQg_qg,
|
|
|
69
69
|
pyrogram/methods/advanced/__init__.py,sha256=nRNLZaThEQylTXtzEbPoQz0s4A5GcJrH7C_dwKKJ530,988
|
|
70
70
|
pyrogram/methods/advanced/invoke.py,sha256=cduAX4lBhqJ6GF6psrwEw3uRFnnEggk_fuyeD3Nmbo4,3133
|
|
71
71
|
pyrogram/methods/advanced/resolve_peer.py,sha256=vXM5M9NiUzbe9nK9LtpIwbHYttyx-89lcZ1CPMbHv0Q,4560
|
|
72
|
-
pyrogram/methods/advanced/save_file.py,sha256=
|
|
72
|
+
pyrogram/methods/advanced/save_file.py,sha256=_xr48IGiXCF3C2W-6_WNdd5m025i-uGWp7LiFRsg_kA,8433
|
|
73
73
|
pyrogram/methods/auth/__init__.py,sha256=7oOjTXZkLaq8BlEVxJuM6C5ZhMDe1sA0wMPlsC8UF2Q,1655
|
|
74
74
|
pyrogram/methods/auth/accept_terms_of_service.py,sha256=qegqafaxszNcOgYCWxTRssXpXJzfKVKexwbqJaEbM1M,1468
|
|
75
75
|
pyrogram/methods/auth/check_password.py,sha256=5w01ommIRhnbNlQVUeRWJVl3Cp27I4EVI_SvMh2YQIE,1942
|
|
@@ -3067,10 +3067,10 @@ pyrogram/types/user_and_chats/video_chat_ended.py,sha256=J5xTIAMSGDz8_z-EGrKwkoJ
|
|
|
3067
3067
|
pyrogram/types/user_and_chats/video_chat_members_invited.py,sha256=9QhonApJd1XjOeJu9fqx2_u6nIOTZhfXZw_tX9XXxd8,1610
|
|
3068
3068
|
pyrogram/types/user_and_chats/video_chat_scheduled.py,sha256=rUvDXF8r-2MfsAZKAcaWb_UZt5VoHebPjeJXWRDHGSo,1531
|
|
3069
3069
|
pyrogram/types/user_and_chats/video_chat_started.py,sha256=WOAuM_CnkRA-W_Iedx0fIHB9RJ-AsvJIiSF05HzLRdA,1043
|
|
3070
|
-
pyrogrammod-2.1.
|
|
3071
|
-
pyrogrammod-2.1.
|
|
3072
|
-
pyrogrammod-2.1.
|
|
3073
|
-
pyrogrammod-2.1.
|
|
3074
|
-
pyrogrammod-2.1.
|
|
3075
|
-
pyrogrammod-2.1.
|
|
3076
|
-
pyrogrammod-2.1.
|
|
3070
|
+
pyrogrammod-2.1.4.dist-info/COPYING,sha256=ixuiBLtpoK3iv89l7ylKkg9rs2GzF9ukPH7ynZYzK5s,35148
|
|
3071
|
+
pyrogrammod-2.1.4.dist-info/COPYING.lesser,sha256=pWgb-bBdsU2Gd2kwAXxketnm5W_2u8_fIeWEgojfrxs,7651
|
|
3072
|
+
pyrogrammod-2.1.4.dist-info/METADATA,sha256=0oYN624qjmXzZIfD_5eKiYY5AvU9m1JK9g85tZ0S0xM,5890
|
|
3073
|
+
pyrogrammod-2.1.4.dist-info/NOTICE,sha256=QL3iJdeVh_ZqRZZchyruQic5bYUWdx3yl0OkSUC2PQc,774
|
|
3074
|
+
pyrogrammod-2.1.4.dist-info/WHEEL,sha256=5Mi1sN9lKoFv_gxcPtisEVrJZihrm_beibeg5R6xb4I,91
|
|
3075
|
+
pyrogrammod-2.1.4.dist-info/top_level.txt,sha256=vS2-tKX7dJ1uKjistE5CoOVbv4yqglA95SK0KFEDwl0,9
|
|
3076
|
+
pyrogrammod-2.1.4.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|