Forwarding messages from one telegram channel to another
Budget: €8 – €30 EUR
Task: Write a simple Python script to forward new messages from one Telegram channel to another.
Task description
It is necessary to write a Python script that connects to a given Telegram channel (Channel A below).
When new messages appear in channel A, the script should redirect it to another Telegram channel (hereinafter referred to as channel B).
When the script is run for the first time, the script should ignore all old messages and forward only those messages that appear in channel A after the script was run.
Example: The script was run for the first time on 08/01/2023 at 14:00
1) All messages in channel A before 08/01/2023 14:00 are ignored.
2) All messages after 08/01/2023 14:00 (inclusive) must be forwarded to channel B.
If the script is restarted, the script must forward all messages that were published in channel A while the script was not running to channel B.
Example:
The script was run from 08/01/2023 14:00 to 08/01/2023 15:00. The script was re-launched on 08/01/2023 at 17:00.
1) When the script is restarted, all messages of channel A from 08/01/2023 15:00 to 08/01/2023 at 17:00 should be forwarded to channel B.
2) All new messages from channel A must be forwarded to channel B.
Also, the program must work in Visual Studio Code
Task description
It is necessary to write a Python script that connects to a given Telegram channel (Channel A below).
When new messages appear in channel A, the script should redirect it to another Telegram channel (hereinafter referred to as channel B).
When the script is run for the first time, the script should ignore all old messages and forward only those messages that appear in channel A after the script was run.
Example: The script was run for the first time on 08/01/2023 at 14:00
1) All messages in channel A before 08/01/2023 14:00 are ignored.
2) All messages after 08/01/2023 14:00 (inclusive) must be forwarded to channel B.
If the script is restarted, the script must forward all messages that were published in channel A while the script was not running to channel B.
Example:
The script was run from 08/01/2023 14:00 to 08/01/2023 15:00. The script was re-launched on 08/01/2023 at 17:00.
1) When the script is restarted, all messages of channel A from 08/01/2023 15:00 to 08/01/2023 at 17:00 should be forwarded to channel B.
2) All new messages from channel A must be forwarded to channel B.
Also, the program must work in Visual Studio Code