This script collects information from a Telegram group, including group details, members, and messages.
- Install required dependencies:
pip install telethon
- Replace the placeholder values in the script with your own Telegram API ID, API hash, and phone number.
- Specify the target group's username or ID.
- Run the script.
group_info.json
: Contains information about the target group.all_messages.csv
: CSV file with details of all messages in the group.
Ensure that you have obtained API credentials from the Telegram API website.