AbhiCalls 1.0.0__py3-none-any.whl → 2.9.0__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.
@@ -0,0 +1 @@
1
+ from .native import _NativeEngine
@@ -0,0 +1,44 @@
1
+ from pytgcalls import PyTgCalls, filters
2
+ from pytgcalls.types import MediaStream, AudioQuality, StreamEnded
3
+
4
+ class _NativeEngine:
5
+ def __init__(self, app):
6
+ self._core = PyTgCalls(app)
7
+ self.on_end = None
8
+
9
+ @self._core.on_update(filters.stream_end())
10
+ async def _ended(_, update: StreamEnded):
11
+ if self.on_end:
12
+ await self.on_end(update.chat_id)
13
+
14
+ async def start(self):
15
+ await self._core.start()
16
+
17
+ async def play(self, chat_id, stream):
18
+ await self._core.play(
19
+ chat_id,
20
+ MediaStream(
21
+ media_path=stream,
22
+ audio_parameters=AudioQuality.STUDIO,
23
+ video_flags=MediaStream.Flags.IGNORE,
24
+ )
25
+ )
26
+
27
+ async def stop(self, chat_id):
28
+ await self._core.leave_call(chat_id)
29
+
30
+ async def pause(self, chat_id):
31
+ await self._core.pause(chat_id)
32
+
33
+ async def resume(self, chat_id):
34
+ await self._core.resume(chat_id)
35
+
36
+ async def mute(self, chat_id):
37
+ await self._core.mute(chat_id)
38
+
39
+ async def unmute(self, chat_id):
40
+ await self._core.unmute(chat_id)
41
+
42
+ async def change_volume(self, chat_id, volume: int = 200):
43
+ await self._core.change_volume(chat_id, volume)
44
+
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: AbhiCalls
3
- Version: 1.0.0
3
+ Version: 2.9.0
4
4
  Summary: Telegram Voice Chat Music Engine with Queue, Loop, ETA and Player controls
5
5
  Home-page: https://github.com/YouTubeMusicAPI/TgCall
6
6
  Author: Abhishek Thakur
@@ -17,7 +17,7 @@ Classifier: Topic :: Software Development :: Libraries
17
17
  Requires-Python: >=3.9
18
18
  Description-Content-Type: text/markdown
19
19
  Requires-Dist: py-tgcalls>=2.1.1
20
- Requires-Dist: pyrogram>=2.0.0
20
+ Requires-Dist: pyrofork
21
21
  Requires-Dist: telethon>=1.34.0
22
22
  Requires-Dist: aiohttp
23
23
  Dynamic: author
@@ -6,7 +6,9 @@ AbhiCalls/queue.py,sha256=iRrTvt1rU-diarSBCfxjeY-4uJ97oUsvDqtPpbB4UQY,1212
6
6
  AbhiCalls/runtime.py,sha256=4_WmHirGwNOyn1Iuzbhecb_ao7qMDh1erFzp0ZaLze0,966
7
7
  AbhiCalls/vc.py,sha256=ld3C4-QNDrHBQPrNzIuNTcu7zk1pVOo9rvrQBUsTI8s,309
8
8
  AbhiCalls/yt.py,sha256=QnO2LdtgVbEi8XqKEY9ZSp6a6x1AjBYVCFNB2sXFcPU,2386
9
- abhicalls-1.0.0.dist-info/METADATA,sha256=ubmOdWXkfYhqljgu7YAJDqOc28ENQNYSB5ea-qKxbuU,1216
10
- abhicalls-1.0.0.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
11
- abhicalls-1.0.0.dist-info/top_level.txt,sha256=3_ZgJEaE0rS9jpmEMi6oIXEtMzIagrn70XtK7H6w2gA,10
12
- abhicalls-1.0.0.dist-info/RECORD,,
9
+ AbhiCalls/_engine/__init__.py,sha256=pTqDs11-vYr-wuwtd7h3EkspDquGu84jWfN54ajl0kM,34
10
+ AbhiCalls/_engine/native.py,sha256=KJajnL9urwrx0PaOEJj4-pGGnhz4X9FDI6rTGrbCLoI,1272
11
+ abhicalls-2.9.0.dist-info/METADATA,sha256=NY86xNzR3cQEQgMw3B_nlg6UA4qn7lki3r2L0MguvdY,1209
12
+ abhicalls-2.9.0.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
13
+ abhicalls-2.9.0.dist-info/top_level.txt,sha256=3_ZgJEaE0rS9jpmEMi6oIXEtMzIagrn70XtK7H6w2gA,10
14
+ abhicalls-2.9.0.dist-info/RECORD,,