Transfer of messages from Discord to Telegram
This Python script automatically retrieves new messages from specified Discord threads and forwards them to corresponding Telegram chats. The project addresses the task of automatically transferring messages between two platforms using GET requests and the Telegram API.
Features:
• Automatic checking for new messages in specified threads.
• Filtering messages by time to avoid forwarding old messages.
• Setting the start time for the script, for example, from 19:00 of the current day.
• Logging each stage of the process for tracking.
• Working with intervals to prevent API blocks.
Technologies used:
• Python 3.x
• aiogram — library for working with the Telegram API.
• requests — for making HTTP requests to the Discord API.
• discord.py — for handling events and retrieving data from Discord.
The script is designed to run on a server in the background and can be launched via the terminal, allowing it to function autonomously even when access to the server is closed.
Features:
• Automatic checking for new messages in specified threads.
• Filtering messages by time to avoid forwarding old messages.
• Setting the start time for the script, for example, from 19:00 of the current day.
• Logging each stage of the process for tracking.
• Working with intervals to prevent API blocks.
Technologies used:
• Python 3.x
• aiogram — library for working with the Telegram API.
• requests — for making HTTP requests to the Discord API.
• discord.py — for handling events and retrieving data from Discord.
The script is designed to run on a server in the background and can be launched via the terminal, allowing it to function autonomously even when access to the server is closed.