Automate listening to Telegram groups and saving comments in text format while comments are spread (online) within those groups (not “post factum”). This will be done in the form of a Python script (using Telethon library?) and saving the comments into a txt file (output) per Telegram group.
The same as I have many groups and channels on my mobile that work fine with a single session / telephone number / Telegram account, the script should be possible to do quite similar (the output consisting of text files will be processed further by the beneficiary - this processing is out of scope for this script).
If not possible to listen to many groups in the same time, I need however a solution, for example copy / paste the script in different folders (each folder with a single Telegram group) that will share the same Telegram session.
There will need to exist as many (outputs) text files as Telegram groups. A new telegram group will be integrated by beneficiary without fancy GUI. I need instructions where in the code to add a new group and where to edit the name of the text file for the newly added group.
The same as a single Telegram account listens to many channels or groups, there will be one telephone number to as many groups as possible (limits from Telegram API need to be underlined as for me to be careful and not to exceed them in order to avoid having the situation where the script will listen to too many groups per single telephone / account number).
Ideally I could imagine that listening to those groups of Telegram will be done using asyncio, instead of synchronous mode that supposes a refresh rate. However, if asyncio is not technically possible for various reasons (too many channels to listen in the same time), then synchronous mode is also acceptable.
As data input there will be the link to groups in the following format:
[login to view URL]
At the end, for validation of script and for testing purposes I will provide my Telegram account / telephone number that I have joined several groups.
9 pekerja bebas membida secara purata €139 untuk pekerjaan ini
I have implemented many python (pure python + django ) app that interact with API and webhooks. i am also able to deliver the app with the most performance and security scale.
Hey, I can develop this script for you. I've already created many bots and scripts for telegram and I work closely with the telethon library. you can listen to many groups at once too.