py-tgcalls 2.2.6__py3-none-any.whl → 2.2.7__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.
- {py_tgcalls-2.2.6.dist-info → py_tgcalls-2.2.7.dist-info}/METADATA +1 -1
- {py_tgcalls-2.2.6.dist-info → py_tgcalls-2.2.7.dist-info}/RECORD +10 -10
- pytgcalls/__version__.py +1 -1
- pytgcalls/ffmpeg.py +2 -2
- pytgcalls/mtproto/hydrogram_client.py +18 -14
- pytgcalls/mtproto/pyrogram_client.py +17 -13
- pytgcalls/mtproto/telethon_client.py +9 -2
- {py_tgcalls-2.2.6.dist-info → py_tgcalls-2.2.7.dist-info}/WHEEL +0 -0
- {py_tgcalls-2.2.6.dist-info → py_tgcalls-2.2.7.dist-info}/licenses/LICENSE +0 -0
- {py_tgcalls-2.2.6.dist-info → py_tgcalls-2.2.7.dist-info}/top_level.txt +0 -0
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
py_tgcalls-2.2.
|
|
1
|
+
py_tgcalls-2.2.7.dist-info/licenses/LICENSE,sha256=46mU2C5kSwOnkqkw9XQAJlhBL2JAf1_uCD8lVcXyMRg,7652
|
|
2
2
|
pytgcalls/__init__.py,sha256=qbfwN7rYwIdCegMOzdcbvwazeNjDzgmowgcqLFNqKIM,308
|
|
3
|
-
pytgcalls/__version__.py,sha256=
|
|
3
|
+
pytgcalls/__version__.py,sha256=_a_I7cjpwo5jHaXCQYkNQgSKbe2WWcxvqM6NIPlZ27w,22
|
|
4
4
|
pytgcalls/chat_lock.py,sha256=u3t0G3EQ20zn89Sn5s-GWFFX9Xmu4gYWkAgzHJOk0Mc,762
|
|
5
5
|
pytgcalls/environment.py,sha256=ctCHACvG6l8SdpPewSBhOvc70kbwpv18maC0TwLvZ08,1924
|
|
6
6
|
pytgcalls/exceptions.py,sha256=Rijc-8T93WEWJxNW9jncU8_M6mYZZZcs8F2bqitEIeI,3787
|
|
7
|
-
pytgcalls/ffmpeg.py,sha256=
|
|
7
|
+
pytgcalls/ffmpeg.py,sha256=DkP-Xj9O1sohGR8TjIcCbv-oYJjnkGKYxhu7Sg6V0KY,8645
|
|
8
8
|
pytgcalls/filters.py,sha256=8Fq_gvHHdqhIk_XwMJ9wneeZOwrvBkSOKaMJ60r3bZU,6157
|
|
9
9
|
pytgcalls/list_to_cmd.py,sha256=rGJLsejbAQdDb8pctMbLnwea5NkitlfVKc3IpoGi4V4,240
|
|
10
10
|
pytgcalls/mtproto_required.py,sha256=6B-31p5qH_6oekUgypV4nK3hqPS6Nr-pA8S81wjnbaY,630
|
|
@@ -73,10 +73,10 @@ pytgcalls/methods/utilities/stream_params.py,sha256=PUnctLhdCeBAg52v95vpxj-42Le5
|
|
|
73
73
|
pytgcalls/mtproto/__init__.py,sha256=X4zvzFG7km7qHyE0fdvA550WcOVO_xl_p__gvIfDGmw,130
|
|
74
74
|
pytgcalls/mtproto/bridged_client.py,sha256=Qb9-9FrUdh3g_sx-JOcvkzv3kJtS_pz2Qaos85DgVPI,8280
|
|
75
75
|
pytgcalls/mtproto/client_cache.py,sha256=5unu8sjLRaIKoEgJGaIRjhA4P3U2lFpfakTKFxKLzAM,5591
|
|
76
|
-
pytgcalls/mtproto/hydrogram_client.py,sha256=
|
|
76
|
+
pytgcalls/mtproto/hydrogram_client.py,sha256=Fzg2JCAozadQA3KdkN2psHxW7vyps_SGhYfbpegTV-4,29525
|
|
77
77
|
pytgcalls/mtproto/mtproto_client.py,sha256=9SIG3DNeICIXvggyVE8DQWtToPtxV0t9ZKr6dEMnEMg,8783
|
|
78
|
-
pytgcalls/mtproto/pyrogram_client.py,sha256
|
|
79
|
-
pytgcalls/mtproto/telethon_client.py,sha256=
|
|
78
|
+
pytgcalls/mtproto/pyrogram_client.py,sha256=gu2Aru9jwXy2GkgfVTh2kRKHi6CzAEJdFr5rD_D67uQ,29512
|
|
79
|
+
pytgcalls/mtproto/telethon_client.py,sha256=NQk4aB0l2G5t1pJ7f6YvW3cvw9ykhuVYDSXsykPqQXA,27845
|
|
80
80
|
pytgcalls/types/__init__.py,sha256=GlgBBXAwbNopXSeTTmiXktrEJhhN_rMBtuAllTBbN3k,1189
|
|
81
81
|
pytgcalls/types/browsers.py,sha256=47Kr5q96n4Q4WvVhA6IUlS2egEcA9GRLlDeFcQYyc9M,9545
|
|
82
82
|
pytgcalls/types/cache.py,sha256=nJh6B7xnvAiLh0mDJYS9sYhnRvj0BqxrQBLXs4WEUMs,1235
|
|
@@ -117,7 +117,7 @@ pytgcalls/types/stream/record_stream.py,sha256=f4VQ6MY8HtOxt7vz0hWBFmbbAIvTRHpAI
|
|
|
117
117
|
pytgcalls/types/stream/stream_ended.py,sha256=xR_kZwFf03hA6rw_nvI7Be7GwoCKzQf_1MKaGpPDXqY,716
|
|
118
118
|
pytgcalls/types/stream/stream_frames.py,sha256=028ZhNV-mN3BGqMlmxusAV1xDQpXRYCeM0WXBZhRUhA,446
|
|
119
119
|
pytgcalls/types/stream/video_quality.py,sha256=eMCBFPwh5meX3UVEaozcGlwmgaujfpiTa3vBVSBBP_8,275
|
|
120
|
-
py_tgcalls-2.2.
|
|
121
|
-
py_tgcalls-2.2.
|
|
122
|
-
py_tgcalls-2.2.
|
|
123
|
-
py_tgcalls-2.2.
|
|
120
|
+
py_tgcalls-2.2.7.dist-info/METADATA,sha256=xFDEczlK5psCyUuWXkUzpmvFbjvdlM8CT7eceK-5SCk,5280
|
|
121
|
+
py_tgcalls-2.2.7.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
122
|
+
py_tgcalls-2.2.7.dist-info/top_level.txt,sha256=IUDUwn0KkcbUYZbCe9R5AUb2Ob-lmllNUGQqyeXXd8A,10
|
|
123
|
+
py_tgcalls-2.2.7.dist-info/RECORD,,
|
pytgcalls/__version__.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = '2.2.
|
|
1
|
+
__version__ = '2.2.7'
|
pytgcalls/ffmpeg.py
CHANGED
|
@@ -63,7 +63,7 @@ async def check_stream(
|
|
|
63
63
|
raise
|
|
64
64
|
|
|
65
65
|
have_video = False
|
|
66
|
-
is_image =
|
|
66
|
+
is_image = True
|
|
67
67
|
have_audio = False
|
|
68
68
|
have_valid_video = False
|
|
69
69
|
|
|
@@ -107,7 +107,7 @@ async def check_stream(
|
|
|
107
107
|
stream_parameters.height = new_h
|
|
108
108
|
stream_parameters.width = new_w
|
|
109
109
|
if is_image:
|
|
110
|
-
stream_parameters.frame_rate =
|
|
110
|
+
stream_parameters.frame_rate = 10
|
|
111
111
|
raise ImageSourceFound(path)
|
|
112
112
|
|
|
113
113
|
if isinstance(stream_parameters, AudioParameters) and not have_audio:
|
|
@@ -10,6 +10,7 @@ from hydrogram.errors import AuthBytesInvalid
|
|
|
10
10
|
from hydrogram.errors import BadRequest
|
|
11
11
|
from hydrogram.errors import FileMigrate
|
|
12
12
|
from hydrogram.errors import FloodWait
|
|
13
|
+
from hydrogram.errors.exceptions import GroupcallForbidden
|
|
13
14
|
from hydrogram.raw.base import InputPeer
|
|
14
15
|
from hydrogram.raw.base import InputUser
|
|
15
16
|
from hydrogram.raw.functions.auth import ExportAuthorization
|
|
@@ -70,9 +71,9 @@ from hydrogram.raw.types import Updates
|
|
|
70
71
|
from hydrogram.raw.types.messages import DhConfig
|
|
71
72
|
from hydrogram.session import Auth
|
|
72
73
|
from hydrogram.session import Session
|
|
74
|
+
from hydrogram.types import PeerChannel
|
|
73
75
|
from ntgcalls import MediaSegmentQuality
|
|
74
76
|
from ntgcalls import Protocol
|
|
75
|
-
from pyrogram.errors import GroupcallForbidden
|
|
76
77
|
|
|
77
78
|
from ..types import CallProtocol
|
|
78
79
|
from ..types import ChatUpdate
|
|
@@ -261,28 +262,31 @@ class HydrogramClient(BridgedClient):
|
|
|
261
262
|
update.message.action,
|
|
262
263
|
MessageActionInviteToGroupCall,
|
|
263
264
|
):
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
update.message.action,
|
|
273
|
-
),
|
|
274
|
-
)
|
|
265
|
+
await self._propagate(
|
|
266
|
+
ChatUpdate(
|
|
267
|
+
chat_id,
|
|
268
|
+
ChatUpdate.Status.INVITED_VOICE_CHAT,
|
|
269
|
+
update.message.action,
|
|
270
|
+
),
|
|
271
|
+
)
|
|
272
|
+
|
|
275
273
|
if isinstance(
|
|
276
274
|
update.message.action,
|
|
277
275
|
MessageActionChatDeleteUser,
|
|
278
276
|
):
|
|
279
277
|
if isinstance(
|
|
280
278
|
update.message.peer_id,
|
|
281
|
-
|
|
279
|
+
(
|
|
280
|
+
PeerChat,
|
|
281
|
+
PeerChannel,
|
|
282
|
+
),
|
|
282
283
|
):
|
|
283
284
|
if isinstance(
|
|
284
285
|
chats[update.message.peer_id.chat_id],
|
|
285
|
-
|
|
286
|
+
(
|
|
287
|
+
ChatForbidden,
|
|
288
|
+
ChannelForbidden,
|
|
289
|
+
),
|
|
286
290
|
):
|
|
287
291
|
self._cache.drop_cache(chat_id)
|
|
288
292
|
await self._propagate(
|
|
@@ -51,6 +51,7 @@ from pyrogram.raw.types import InputPhoneCall
|
|
|
51
51
|
from pyrogram.raw.types import MessageActionChatDeleteUser
|
|
52
52
|
from pyrogram.raw.types import MessageActionInviteToGroupCall
|
|
53
53
|
from pyrogram.raw.types import MessageService
|
|
54
|
+
from pyrogram.raw.types import PeerChannel
|
|
54
55
|
from pyrogram.raw.types import PeerChat
|
|
55
56
|
from pyrogram.raw.types import PhoneCall
|
|
56
57
|
from pyrogram.raw.types import PhoneCallAccepted
|
|
@@ -262,28 +263,31 @@ class PyrogramClient(BridgedClient):
|
|
|
262
263
|
update.message.action,
|
|
263
264
|
MessageActionInviteToGroupCall,
|
|
264
265
|
):
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
update.message.action,
|
|
274
|
-
),
|
|
275
|
-
)
|
|
266
|
+
await self._propagate(
|
|
267
|
+
ChatUpdate(
|
|
268
|
+
chat_id,
|
|
269
|
+
ChatUpdate.Status.INVITED_VOICE_CHAT,
|
|
270
|
+
update.message.action,
|
|
271
|
+
),
|
|
272
|
+
)
|
|
273
|
+
|
|
276
274
|
if isinstance(
|
|
277
275
|
update.message.action,
|
|
278
276
|
MessageActionChatDeleteUser,
|
|
279
277
|
):
|
|
280
278
|
if isinstance(
|
|
281
279
|
update.message.peer_id,
|
|
282
|
-
|
|
280
|
+
(
|
|
281
|
+
PeerChat,
|
|
282
|
+
PeerChannel,
|
|
283
|
+
),
|
|
283
284
|
):
|
|
284
285
|
if isinstance(
|
|
285
286
|
chats[update.message.peer_id.chat_id],
|
|
286
|
-
|
|
287
|
+
(
|
|
288
|
+
ChatForbidden,
|
|
289
|
+
ChannelForbidden,
|
|
290
|
+
),
|
|
287
291
|
):
|
|
288
292
|
self._cache.drop_cache(chat_id)
|
|
289
293
|
await self._propagate(
|
|
@@ -31,6 +31,7 @@ from telethon.tl.functions.phone import LeaveGroupCallRequest
|
|
|
31
31
|
from telethon.tl.functions.phone import RequestCallRequest
|
|
32
32
|
from telethon.tl.functions.phone import SendSignalingDataRequest
|
|
33
33
|
from telethon.tl.functions.upload import GetFileRequest
|
|
34
|
+
from telethon.tl.types import ChannelForbidden
|
|
34
35
|
from telethon.tl.types import ChatForbidden
|
|
35
36
|
from telethon.tl.types import DataJSON
|
|
36
37
|
from telethon.tl.types import GroupCall
|
|
@@ -284,11 +285,17 @@ class TelethonClient(BridgedClient):
|
|
|
284
285
|
):
|
|
285
286
|
if isinstance(
|
|
286
287
|
update.message.peer_id,
|
|
287
|
-
|
|
288
|
+
(
|
|
289
|
+
PeerChat,
|
|
290
|
+
PeerChannel,
|
|
291
|
+
),
|
|
288
292
|
):
|
|
289
293
|
if isinstance(
|
|
290
294
|
await self._app.get_entity(chat_id),
|
|
291
|
-
|
|
295
|
+
(
|
|
296
|
+
ChatForbidden,
|
|
297
|
+
ChannelForbidden,
|
|
298
|
+
),
|
|
292
299
|
):
|
|
293
300
|
self._cache.drop_cache(chat_id)
|
|
294
301
|
await self._propagate(
|
|
File without changes
|
|
File without changes
|
|
File without changes
|