#github.com/MindTheGap1 from fbchat import Client from fbchat.models import * import time client = Client("email", "password") thread_id = 'groupid' thread_type = ThreadType.GROUP client.sendRemoteImage( 'https://media.giphy.com/media/l3q2zVr6cu95nF6O4/giphy.gif', message=Message(text="IT'S PARTY TIME!"), thread_id=thread_id, thread_type=thread_type) while True: client.changeThreadColor(ThreadColor.MESSENGER_BLUE, thread_id=thread_id) client.changeThreadEmoji('😡', thread_id=thread_id) time.sleep(0.1) client.changeThreadColor(ThreadColor.BILOBA_FLOWER, thread_id=thread_id) client.changeThreadEmoji('😈', thread_id=thread_id) time.sleep(0.1) client.changeThreadColor(ThreadColor.BRILLIANT_ROSE, thread_id=thread_id) client.changeThreadEmoji('😡', thread_id=thread_id) time.sleep(0.1) client.changeThreadColor(ThreadColor.CAMEO, thread_id=thread_id) client.changeThreadEmoji('😈', thread_id=thread_id) time.sleep(0.1) client.changeThreadColor(ThreadColor.DEEP_SKY_BLUE, thread_id=thread_id) client.changeThreadEmoji('😡', thread_id=thread_id) time.sleep(0.1) client.changeThreadColor(ThreadColor.FERN, thread_id=thread_id)
client.addUsersToGroup('<user id>', thread_id=thread_id) # Will add the users with IDs `<1st user id>`, `<2nd user id>` and `<3th user id>` to the thread client.addUsersToGroup(['<1st user id>', '<2nd user id>', '<3rd user id>'], thread_id=thread_id) # Will change the nickname of the user `<user_id>` to `<new nickname>` client.changeNickname('<new nickname>', '<user id>', thread_id=thread_id, thread_type=thread_type) # Will change the title of the thread to `<title>` client.changeThreadTitle('<title>', thread_id=thread_id, thread_type=thread_type) # Will set the typing status of the thread to `TYPING` client.setTypingStatus(TypingStatus.TYPING, thread_id=thread_id, thread_type=thread_type) # Will change the thread color to `MESSENGER_BLUE` client.changeThreadColor(ThreadColor.MESSENGER_BLUE, thread_id=thread_id) # Will change the thread emoji to `👍` client.changeThreadEmoji('👍', thread_id=thread_id) # Will react to a message with a 😍 emoji client.reactToMessage('<message id>', MessageReaction.LOVE)