Skip to content

Commit

Permalink
support approving message requests
Browse files Browse the repository at this point in the history
  • Loading branch information
art-vasilyev committed May 13, 2019
1 parent b399a69 commit a1e1632
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions examples/approve_thread_requests.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
"""
instabot example
Workflow:
1) approve incoming message requests.
"""

import argparse
import os
import sys

sys.path.append(os.path.join(sys.path[0], '../'))
from instabot import Bot


parser = argparse.ArgumentParser(add_help=True)
parser.add_argument('-u', type=str, help="username")
parser.add_argument('-p', type=str, help="password")
parser.add_argument('-proxy', type=str, help="proxy")
args = parser.parse_args()

bot = Bot()
bot.login(username=args.u, password=args.p,
proxy=args.proxy)
bot.approve_pending_thread_requests()

0 comments on commit a1e1632

Please sign in to comment.