Skip to content

tbot-upnp is a small tool that can cast telegram videos to other devices through the upnp protocol. tbot-upnp是一个可以将telegram视频通过upnp协议投屏至其他设备的小工具

License

Notifications You must be signed in to change notification settings

tgbot-upnp/tgbot-upnp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tgbot-upnp

tgbot-upnp is a telegram bot that can cast telegram videos to other devices via upnp protocol

English | 简体中文

This description was generated using translation software. Help with translation is welcome.

Feature

  • Cast telegram videos to devices that support UPnP (AVTransport)
  • No need to download the entire video, supports progress bar
  • Automatically scan all UPnP (AVTransport)-enabled devices on the LAN
  • Support multiple languages
  • Lower memory and cpu usage
  • Support windows/docker running
demo.mp4

Quick start

Preparation

  1. Create your own bot https://telegram.me/BotFather

    GET API Token

  2. Create your own app https://core.telegram.org/api/obtaining_api_id

    GET App api_id App api_hash

    The API of Telegram’s official bot does not support streaming downloads. To achieve streaming, you can only use a third-party client that supports the MTProto2.0 protocol. To use a third-party client, you need to apply for your own api_id.

  3. Get your user ID https://telegram.me/userinfobot

    GET userID integer number

    Used by bot to determine whether the current user can be an administrator

windows

Download the app from release page , edit the config.yml file, and replace it with the information obtained during the preparation work.

app_id: App api_id
api_hash: App api_hash
bot_token: API Toke
http_port: 8080
admin_id: userID #Multiple user IDs are separated by ",": userID1,userID2

Just start the application and you can see the running program in the system tray

docker

docker run -d --name tgbot-upnp \
    -e TELEGRAM_APP_ID="App api_id" \
    -e TELEGRAM_API_HASH="App api_hash" \
    -e TELEGRAM_BOT_TOKEN="API Toke" \
    -e TELEGRAM_HTTP_PORT=8080 \
    -e TELEGRAM_ADMIN_ID="userID,userID2" \
    --network host \
    tgbotupnp/tgbot-upnp:latest

Test run environment

  • Windows10-amd64
  • Windows10-386
  • Docker-amd64

Screen-casting software tested

Todo

  • support mac
  • support openwrt

About

tbot-upnp is a small tool that can cast telegram videos to other devices through the upnp protocol. tbot-upnp是一个可以将telegram视频通过upnp协议投屏至其他设备的小工具

Topics

Resources

License

Stars

Watchers

Forks

Languages