An open API service indexing awesome lists of open source software.

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

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
![image](https://github.com/user-attachments/assets/bc82567b-85fd-49f9-a598-07a8e547bb2f)
![image](https://github.com/user-attachments/assets/615e58f0-ade7-4fe4-8a03-dda859500425)

- Direct message forward
![image](https://github.com/user-attachments/assets/5c643033-ca7d-4697-a4b1-2bf08c1e4ac6)
![image](https://github.com/user-attachments/assets/32a08072-eb75-460a-ac91-8f7251917fe0)

- Server, Channel message forward
![image](https://github.com/user-attachments/assets/bc82567b-85fd-49f9-a598-07a8e547bb2f)
![image](https://github.com/user-attachments/assets/615e58f0-ade7-4fe4-8a03-dda859500425)

- Direct message forward
![image](https://github.com/user-attachments/assets/5c643033-ca7d-4697-a4b1-2bf08c1e4ac6)
![image](https://github.com/user-attachments/assets/32a08072-eb75-460a-ac91-8f7251917fe0)

## 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)