https://github.com/any-bot/d2t-msg-forward
Discord to Telegram CA forwarder
https://github.com/any-bot/d2t-msg-forward
discord-bot discord-py forwarder message python telegram telegram-bot-api
Last synced: about 1 year ago
JSON representation
Discord to Telegram CA forwarder
- Host: GitHub
- URL: https://github.com/any-bot/d2t-msg-forward
- Owner: Any-bot
- Created: 2024-11-13T05:10:06.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2024-12-16T00:00:54.000Z (over 1 year ago)
- Last Synced: 2024-12-16T01:18:03.853Z (over 1 year ago)
- Topics: discord-bot, discord-py, forwarder, message, python, telegram, telegram-bot-api
- Language: Python
- Homepage:
- Size: 43 KB
- Stars: 2
- Watchers: 0
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Discord to Telegram(D2T) message forward using Self-Bot
This is a simple Python script that forwards messages from a Discord channel to a Telegram bot when a message includes a Solana token address.
This is a **self-bot**.
https://github.com/user-attachments/assets/f6d5deb0-7d57-43c1-b498-0140f6072169
## Main Features
- Forward messages from a Discord **channel** to a Telegram **bot**.
- Forward DM
## Screenshots
- Server, Channel message forward


- Direct message forward


- Server, Channel message forward


- Direct message forward


## Tech stack
- Python
- Discord Self-bot
- Discord.py
- telegram.py
- telegram-send-message
- telegram-API
## Prerequisites
- Python 3.13.0 or higher
## Configuration
1. clone the repository:
```
https://github.com/Any-bot/D2T-msg-forward.git
```
2. Go to the project directory:
```
cd D2T-msg-forward
```
3. Install the required packages:
```
pip install -r requirements.txt
```
4. Create a .env file in the root directory of the project and add the following variables:
```
DISCORD_USER_TOKEN=
BOT_USERNAME=
TELEGRAM_API_ID=
TELEGRAM_API_HASH=
```
5. Run the script:
```
python main.py
```
## Version 1.1
- 13/11/2024
## Author
[Telegram](https://t.me/plzbugmenot)