AbhiCalls 1.0.0__tar.gz → 2.9.0__tar.gz
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.
- abhicalls-2.9.0/AbhiCalls/_engine/__init__.py +1 -0
- abhicalls-2.9.0/AbhiCalls/_engine/native.py +44 -0
- {abhicalls-1.0.0 → abhicalls-2.9.0}/AbhiCalls.egg-info/PKG-INFO +2 -2
- {abhicalls-1.0.0 → abhicalls-2.9.0}/AbhiCalls.egg-info/SOURCES.txt +3 -1
- {abhicalls-1.0.0 → abhicalls-2.9.0}/AbhiCalls.egg-info/requires.txt +1 -1
- {abhicalls-1.0.0 → abhicalls-2.9.0}/PKG-INFO +2 -2
- {abhicalls-1.0.0 → abhicalls-2.9.0}/pyproject.toml +2 -2
- {abhicalls-1.0.0 → abhicalls-2.9.0}/setup.py +1 -1
- {abhicalls-1.0.0 → abhicalls-2.9.0}/AbhiCalls/__init__.py +0 -0
- {abhicalls-1.0.0 → abhicalls-2.9.0}/AbhiCalls/controller.py +0 -0
- {abhicalls-1.0.0 → abhicalls-2.9.0}/AbhiCalls/models.py +0 -0
- {abhicalls-1.0.0 → abhicalls-2.9.0}/AbhiCalls/player.py +0 -0
- {abhicalls-1.0.0 → abhicalls-2.9.0}/AbhiCalls/queue.py +0 -0
- {abhicalls-1.0.0 → abhicalls-2.9.0}/AbhiCalls/runtime.py +0 -0
- {abhicalls-1.0.0 → abhicalls-2.9.0}/AbhiCalls/vc.py +0 -0
- {abhicalls-1.0.0 → abhicalls-2.9.0}/AbhiCalls/yt.py +0 -0
- {abhicalls-1.0.0 → abhicalls-2.9.0}/AbhiCalls.egg-info/dependency_links.txt +0 -0
- {abhicalls-1.0.0 → abhicalls-2.9.0}/AbhiCalls.egg-info/top_level.txt +0 -0
- {abhicalls-1.0.0 → abhicalls-2.9.0}/README.md +0 -0
- {abhicalls-1.0.0 → abhicalls-2.9.0}/setup.cfg +0 -0
|
@@ -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:
|
|
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:
|
|
20
|
+
Requires-Dist: pyrofork
|
|
21
21
|
Requires-Dist: telethon>=1.34.0
|
|
22
22
|
Requires-Dist: aiohttp
|
|
23
23
|
Dynamic: author
|
|
@@ -13,4 +13,6 @@ AbhiCalls.egg-info/PKG-INFO
|
|
|
13
13
|
AbhiCalls.egg-info/SOURCES.txt
|
|
14
14
|
AbhiCalls.egg-info/dependency_links.txt
|
|
15
15
|
AbhiCalls.egg-info/requires.txt
|
|
16
|
-
AbhiCalls.egg-info/top_level.txt
|
|
16
|
+
AbhiCalls.egg-info/top_level.txt
|
|
17
|
+
AbhiCalls/_engine/__init__.py
|
|
18
|
+
AbhiCalls/_engine/native.py
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: AbhiCalls
|
|
3
|
-
Version:
|
|
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:
|
|
20
|
+
Requires-Dist: pyrofork
|
|
21
21
|
Requires-Dist: telethon>=1.34.0
|
|
22
22
|
Requires-Dist: aiohttp
|
|
23
23
|
Dynamic: author
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "AbhiCalls"
|
|
7
|
-
version = "
|
|
7
|
+
version = "2.9.0"
|
|
8
8
|
description = "Telegram Voice Chat Music Engine with Queue, Loop, ETA and Player controls"
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
requires-python = ">=3.9"
|
|
@@ -16,7 +16,7 @@ authors = [
|
|
|
16
16
|
|
|
17
17
|
dependencies = [
|
|
18
18
|
"py-tgcalls>=2.1.1",
|
|
19
|
-
"
|
|
19
|
+
"pyrofork",
|
|
20
20
|
"telethon>=1.34.0",
|
|
21
21
|
"aiohttp"
|
|
22
22
|
]
|
|
@@ -2,7 +2,7 @@ from setuptools import setup, find_packages
|
|
|
2
2
|
|
|
3
3
|
setup(
|
|
4
4
|
name="AbhiCalls",
|
|
5
|
-
version="
|
|
5
|
+
version="2.9.0",
|
|
6
6
|
description="Telegram Voice Chat Music Engine with Queue, Loop, ETA support",
|
|
7
7
|
long_description=open("README.md", encoding="utf-8").read(),
|
|
8
8
|
long_description_content_type="text/markdown",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|