This script/program supports several argument parameters that can be used. Here's an explanation of the arguments:
This argument is used to specify the phone number for authentication with the Telegram API. It should be in international format, for example: +621234567890
. This argument is optional; if not provided, it will be read from config.json
.
Example:
python main.py +621234567890
This argument is used to provide the API ID and API Hash of your application, which you can obtain from my.telegram.org. This argument is optional and will update the values in config.json
only if both are provided.
Example:
python main.py --api 123456 abcdef1234567890abcdef1234567890
This argument allows you to set the minimum and maximum delay in seconds for the script's actions. If not specified, the default values (30 and 120 seconds) will be used.
Example:
python main.py --delay 10 60
To run the script with a specified phone number, API ID, API Hash, and delay:
python main.py +621234567890 --api 123456 abcdef1234567890abcdef1234567890 --delay 10 60
If you only want to authenticate using the phone number and keep existing configurations:
python main.py +621234567890
- Use
phone_number
to authenticate or read it fromconfig.json
. - Include
--api
to update bothAPI_ID
andAPI_HASH
inconfig.json
. - Use
--delay
to set the action delay. - If
API_ID
is provided withoutAPI_HASH
, the change will not be applied.
You can download the Repository by cloning it to your system and installing the necessary dependencies. Follow the steps below:
-
Update Packages
pkg update && pkg upgrade
-
Install Required Packages
pkg install python git
-
Allow Storage Access Run the following command to grant storage access:
termux-setup-storage
Select "Allow" when prompted.
-
Access Internal Folder
cd /storage/emulated/0
-
Set Up Git for Security To allow Git operations in Termux, run:
git clone https://github.com/ululazmi18/auto_comment_telegram_channel.git cd auto_comment_telegram_channel git config --global --add safe.directory /storage/emulated/0/auto_comment_telegram_channel
-
Clone Repository
git clone https://github.com/ululazmi18/auto_comment_telegram_channel.git
Downloads a copy of the repository to your computer.
-
Navigate to Directory
cd auto_comment_telegram_channel
Moves to the folder containing the script.
-
Install Dependencies
pip install -r requirements.txt
Installs all required packages listed in
requirements.txt
. -
Edit Configuration File
nano config.json
Fill it with
API_ID
,API_HASH
, andPHONE_NUMBER
. -
Run the Script
python main.py
Executes the main script to activate the features.
This script is a useful tool for managing communication in Telegram channels automatically. Be sure to comply with Telegram's policies while using this script.