+
Skip to content

luwufka/tg-rpc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Telegram RPC


> Читать на русском

How does it work?

Telegram doesn't have built-in RPC or anything like that.

However, if you specify your personal channel in your profile, some information can be displayed:

Discord Activity Telegram Channel
Name Channel Name
Large Icon Channel Avatar
Details, State, etc. Last Post Text
Small Icon Last Post Media

This is a rather unusual method I came up with :/

Installation Guide

Standard Setup

  1. Make sure you have Python installed.
  2. Install dependencies: pip install -r ./src/requirements.txt
  3. Set the values in the .env file:
DISCORD_TOKEN = <Bot Token>
DISCORD_GUILD_ID = <Server ID>
DISCORD_MEMBER_ID = <Member ID>

TELEGRAM_TOKEN = <Bot Token>
TELEGRAM_CHAT_ID = <Channel ID>
  1. Optionally, in config.py, you can configure proxy settings, activity headers, etc.
  2. Run: python ./src/.

Docker Setup

  1. Build the image: docker build -t tg-rpc .
  2. Create a container and set all necessary environment variables:
DISCORD_TOKEN = <Bot Token>
DISCORD_GUILD_ID = <Server ID>
DISCORD_MEMBER_ID = <Member ID>
DISCORD_PROXY = <Proxy URL: http://127.0.0.1:2080>

TELEGRAM_TOKEN = <Bot Token>
TELEGRAM_CHAT_ID = <Channel ID>
  1. In config.py, you can configure the proxy, activity headers, etc.

How to get a token?

About

This tool to transfer Discord Profile Activities to Telegram

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载