Exemplo n.º 1
0
    # Will add the users with IDs `<1st user id>`, `<2nd user id>` and `<3th user id>` to the thread
    client.add_users_to_group(
        ["<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.change_nickname("<new nickname>",
                       "<user id>",
                       thread_id=thread_id,
                       thread_type=thread_type)

# Will change the title of the thread to `<title>`
client.change_thread_title("<title>",
                           thread_id=thread_id,
                           thread_type=thread_type)

# Will set the typing status of the thread to `TYPING`
client.set_typing_status(TypingStatus.TYPING,
                         thread_id=thread_id,
                         thread_type=thread_type)

# Will change the thread color to `MESSENGER_BLUE`
client.change_thread_color(ThreadColor.MESSENGER_BLUE, thread_id=thread_id)

# Will change the thread emoji to `👍`
client.change_thread_emoji("👍", thread_id=thread_id)

# Will react to a message with a 😍 emoji
client.react_to_message("<message id>", MessageReaction.LOVE)