A Telegram bot for scheduling InstaPy
Telegram-InstaPy-Scheduling is bot for telegram which helps user to schedule InstaPy.
pip install -r requirements.txt
instapy_folder
is the path to your InstaPy installation.{
"telegram_token": "xxxx",
"instapy_folder": "/home/xxxx/GitHub/instapy_bot",
"allowed_id": [ "chat_id from GiveChatId_Bot", "342342" ],
"project_path": [ "/path_where_you_want_load_your_files" ], # Optional, default: ./
"users_file": "new_user_list_file.pickle" # Optional, default: users.pickle
}
def script_for_big_like(InstaPy, username, password, proxy):
session = InstaPy(username=username, password=password)
session.login()
# your stuff here, e.g.
session.like_by_tags(['natgeo', 'world'], amount=10)
session.end()
Command | Parameters | Description |
---|---|---|
/add_user | <username> <password> <proxy:optional> | Save new user. |
/delete_user | <username> | Delete an user. |
/users | Print all users saved |
Command | Parameters | Description |
---|---|---|
/set | <username> <job_name> <script_name> <hh:mm:ss> | Create a new schedule. Select the day from bot. |
/unset | <job_name> | Delete a schedule. |
/jobs | Print all jobs that have been set | |
/reload | Jobs are saved in db now. Use this cmd to reload. | |
/scripts | Print all your scripts | |
/status | <job_name:optional> | Print the status of all your thread or a single thread. |
/logs | <username> <line_number> | Show n lines of username/general.log file. |
/now | <script_name> <username> | Run immediately. |
/stop | <job_name> | Stop immediately. |
/time | Prints current server time, useful for scheduling. |