Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from fbchat import Client, log
- from getpass import getpass
- username = str(raw_input("Username: "))
- password = getpass()
- client = Client(username, password)
- name = str(raw_input("Name of that friends you wanna send messages, input like-- Narendra pandey--: "))
- threads = client.searchForThreads(name)
- message = str(raw_input("Message to that person: "))
- for thread in threads:
- thread = str(thread).split(' ')[3].split('(')[1].split(')')[0]
- for i in range(num):
- client.sendMessage(message, thread_id=thread)
- break
Add Comment
Please, Sign In to add comment