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 :/
- Make sure you have Python installed.
- Install dependencies:
pip install -r ./src/requirements.txt
- 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>
- Optionally, in
config.py
, you can configure proxy settings, activity headers, etc. - Run:
python ./src/.
- Build the image:
docker build -t tg-rpc .
- 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>
- In
config.py
, you can configure the proxy, activity headers, etc.
- Discord: Discord Developer Portal
- Telegram: @BotFather