TelecastBot

2025-12-10 0 727

TelecastBot Telegram Bot ?

TelecastBot: Streams videos & audio in Telegram voice chats for both groups and channels. It supports live streams, YouTube videos, and Telegram media. It also supports scheduling streams, recording, and more.


Features ?

  • Playlist and Queue Management: Smooth transitions with zero downtime.
  • Video Recording: Capture moments directly from voice chats.
  • Voicechat Scheduling: Plan and automate your streams.
  • Spotify Track Support: Stream music directly from Spotify track links.
  • Flexible UI: Easy control over the player with an intuitive interface.
  • Customizable Settings: Toggle between audio or video modes, adjust quality, and more.
  • YouTube Playlist Support: Stream directly from YouTube playlists.
  • Live Streaming: Support for YouTube live streams.
  • Telegram File Playback: Play media files shared within Telegram.
  • Auto-Restart: Reliable operation through automatic restarts, even after platform reboots.
  • Playlist Import/Export: Easily manage your playlists.
  • Rich Customization: Change the voice chat title to the currently playing song, and much more.

Configuration Variables


Mandatory Vars

  1. API_ID – Obtain from my.telegram.org
  2. API_HASH – Obtain from my.telegram.org
  3. BOT_TOKEN – Create a bot via @Botfather
  4. SESSION_STRING – Open @ItsSmartToolBot. Bot and use /pyro command and then follow all instructions.
  5. CHAT – Channel/Group ID where the bot plays music.

Recommended Optional Vars

  1. DATABASE_URI – MongoDB database Url, recommended for full feature access, obtain from mongodb.
  2. HEROKU_API_KEY – Your Heroku API key, generate here.
  3. HEROKU_APP_NAME – Your Heroku app\’s name.
  4. FILTERS – Customize search filters for channel play (e.g., video document, video document audio, video).

Optional Vars

  1. LOG_GROUP : Group to send Playlist, if CHAT is a Group()
  2. ADMINS : ID of users who can use admin commands.
  3. STARTUP_STREAM : This will be streamed on startups and restarts of bot. You can use either any STREAM_URL or a direct link of any video or a Youtube Live link.
  4. REPLY_MESSAGE : A reply to those who message the USER account in PM. Leave it blank if you do not need this feature. (Configurable through bot if mongodb added.)
  5. ADMIN_ONLY : Pass True If you want to make /play command only for admins of CHAT. By default /play is available for all.(Configurable through bot if mongodb added.)
  6. DATABASE_NAME: Database name for your mongodb database.
  7. SHUFFLE : Make it False if you dont want to shuffle playlists. (Configurable through bot if mongodb added.)
  8. EDIT_TITLE : Make it False if you do not want the bot to edit video chat title according to playing song. (Configurable through bot if mongodb added.)
  9. RECORDING_DUMP : A Channel ID with the USER account as admin, to dump video chat recordings.
  10. RECORDING_TITLE: A custom title for your videochat recordings.
  11. TIME_ZONE : Time Zone of your country, by default IST
  12. IS_VIDEO_RECORD : Make it False if you do not want to record video, and only audio will be recorded.(Configurable through bot if mongodb added.)
  13. IS_LOOP ; Make it False if you do not want 24 / 7 Video Chat. (Configurable through bot if mongodb added.)
  14. IS_VIDEO : Make it False if you want to use the player as a musicplayer without video. (Configurable through bot if mongodb added.)
  15. PORTRAIT: Make it True if you want the video recording in portrait mode. (Configurable through bot if mongodb added.)
  16. DELAY : Choose the time limit for commands deletion. 10 sec by default.
  17. QUALITY : Customize the quality of video chat, use one of high, medium, low .
  18. BITRATE : Bitrate of audio (Not recommended to change).
  19. FPS : Fps of video to be played (Not recommended to change.)
  20. SPOTIFY_CLIENT_ID – Your Spotify Client ID, obtain from Spotify Developer Console.
  21. SPOTIFY_CLIENT_SECRET – Your Spotify Client Secret, obtain from Spotify Developer Console.

Handling YouTube Download Errors with Cookies

To avoid errors related to YouTube sign-in requirements, using a cookie file is effective. Here\’s how to set it up:

Steps to Export and Use Cookies:

  1. Create a Dedicated Chrome Profile:

    • It\’s recommended to create a new Chrome profile for managing your bot\’s cookies.
  2. Install a Cookie Management Extension:

    • Use \”Cookie Editor\” or similar extensions to manage your cookies.
  3. Export Cookies from YouTube:

    • Log into YouTube in your new browser profile and export cookies in Netscape format via the cookie extension.
  4. Save the Cookies File:

    • Update your cookies.txt in the TelecastBot/ytcookies directory of your project.

Managing Cookies:

  • Cookie Expiry:

    • Refresh your cookies by exporting new ones if you encounter download issues.
  • Cookie Depletion:

    • Avoid frequent bot restarts and excessive YouTube requests to prevent early cookie expiry.

This setup should help manage YouTube content access efficiently without encountering sign-in or bot protection errors.

System Requirements

  • If You Want To Use VPS Then Use Vps Python Version 3.8 To 3.11
  • Python: Version 3.8 or higher recommended.
  • NodeJS: Version 15.0.0 or higher.
  • FFMpeg: Necessary for media processing.

Ensure that your environment meets these specifications to guarantee full functionality of the script.

Deploy to Heroku

Deploy to VPS

git clone https://gi*t*hu*b.com/abirxdhack/TelecastBot
cd TelecastBot
pip3 install -r requirements.txt
# install node js
sudo bash install_node.sh
# <Create Variables appropriately (.env [optional])> Or Directly Edit Config.py
python3 main.py

Project Contributors

Main Author ?‍

  • Name: Subin
  • Telegram: @subin_works

Contributing Author ?‍

  • Name: Bisnu Ray
  • Telegram: @itsSmartDev

Contributing Author ?‍

  • Name: Abir Arafat Chawdhury
  • Telegram: @Modvip_rm

For inquiries or feedback, please feel free to reach out via Telegram.

Ethical Notice ?

Ethics Reminder: Simply modifying a few lines of code does not constitute original authorship. When forking a project, always fork responsibly and give proper credit to the original creators.
Ethics Reminder: I Just Decoded Encoded Parts Of This Repo Only So Subinips & Bisnu Ray Are Main Dev.

下载源码

通过命令行克隆项目:

git clone https://github.com/abirxdhack/TelecastBot.git

收藏 (0) 打赏

感谢您的支持,我会继续努力的!

打开微信/支付宝扫一扫,即可进行扫码打赏哦,分享从这里开始,精彩与您同在
点赞 (0)

申明:本文由第三方发布,内容仅代表作者观点,与本网站无关。对本文以及其中全部或者部分内容的真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。本网发布或转载文章出于传递更多信息之目的,并不意味着赞同其观点或证实其描述,也不代表本网对其真实性负责。

左子网 编程相关 TelecastBot https://www.zuozi.net/33301.html

常见问题
  • 1、自动:拍下后,点击(下载)链接即可下载;2、手动:拍下后,联系卖家发放即可或者联系官方找开发者发货。
查看详情
  • 1、源码默认交易周期:手动发货商品为1-3天,并且用户付款金额将会进入平台担保直到交易完成或者3-7天即可发放,如遇纠纷无限期延长收款金额直至纠纷解决或者退款!;
查看详情
  • 1、描述:源码描述(含标题)与实际源码不一致的(例:货不对板); 2、演示:有演示站时,与实际源码小于95%一致的(但描述中有”不保证完全一样、有变化的可能性”类似显著声明的除外); 3、发货:不发货可无理由退款; 4、安装:免费提供安装服务的源码但卖家不履行的; 5、收费:价格虚标,额外收取其他费用的(但描述中有显著声明或双方交易前有商定的除外); 6、其他:如质量方面的硬性常规问题BUG等。 注:经核实符合上述任一,均支持退款,但卖家予以积极解决问题则除外。
查看详情
  • 1、左子会对双方交易的过程及交易商品的快照进行永久存档,以确保交易的真实、有效、安全! 2、左子无法对如“永久包更新”、“永久技术支持”等类似交易之后的商家承诺做担保,请买家自行鉴别; 3、在源码同时有网站演示与图片演示,且站演与图演不一致时,默认按图演作为纠纷评判依据(特别声明或有商定除外); 4、在没有”无任何正当退款依据”的前提下,商品写有”一旦售出,概不支持退款”等类似的声明,视为无效声明; 5、在未拍下前,双方在QQ上所商定的交易内容,亦可成为纠纷评判依据(商定与描述冲突时,商定为准); 6、因聊天记录可作为纠纷评判依据,故双方联系时,只与对方在左子上所留的QQ、手机号沟通,以防对方不承认自我承诺。 7、虽然交易产生纠纷的几率很小,但一定要保留如聊天记录、手机短信等这样的重要信息,以防产生纠纷时便于左子介入快速处理。
查看详情

相关文章

猜你喜欢
发表评论
暂无评论
官方客服团队

为您解决烦忧 - 24小时在线 专业服务