Migrate to py-tgcalls 2.x & Fix Media Playback Issues#2
Open
taslim19 wants to merge 5 commits intoTeamUltroid:mainfrom
Open
Migrate to py-tgcalls 2.x & Fix Media Playback Issues#2taslim19 wants to merge 5 commits intoTeamUltroid:mainfrom
taslim19 wants to merge 5 commits intoTeamUltroid:mainfrom
Conversation
- Replace GroupCallFactory with single PyTgCalls(vcClient) instance - Add _PlayerCompat layer for group_call API (start_audio, start_video, stop, volume, mute, pause, reconnect) - Use stream_end() handler for queue playback; _play_from_queue(chat_id) for skip/stream end - controls: NotConnectedError -> NotInCallError, use is_connected_async() - play/ytplaylist: use is_connected_async() for join checks - Add requirements.txt (py-tgcalls[telethon]>=2.2.0) - Doc tweaks in vctools.py, videoplay.py Made-with: Cursor
- Replace VideosSearch() calls with yt-dlp -j wrapper (yt_search_first) - Avoid httpx 'proxies' kwarg TypeError from youtubesearchpython - Keep existing get_stream_link() yt-dlp pipeline Made-with: Cursor
aac591b to
f354865
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request updates the core voice/video engine to
py-tgcalls2.x and addresses several critical playback, metadata, and compatibility bugs in VcBot.Summary of Changes
py-tgcalls2.x: Updated all core group call functions to support the newpy-tgcallsarchitecture.InvalidMTProtoClientError: Added a _TelethonShim wrapper forvcClientto ensurepy-tgcallscorrectly recognizes it as a Telethon client.TypeError: 'coroutine' object is not callable: Updated init.py to correctly awaitapp.group_callsas a property rather than a function..playCommand Playing Video: Modified start_audio to explicitly passvideo_flags=MediaStream.Flags.IGNORE, ensuring.playstays strictly audio-only.youtubesearchpythonwithyt-dlp: Switched the primary metadata extractor toyt-dlpfor better reliability and to avoid frequent proxy errors..webpextensions with.jpgwhen fetching YouTube thumbnails, preventing Telegram from accidentally rendering them as stickers.