Reactions on a ChatInterface object

Please, I need some help. How can I get the reactions on a ChatInterface object?

Let me know if this helps!

import panel as pn
pn.extension()

chat = pn.chat.ChatInterface(
    pn.chat.ChatMessage("Testing...", reactions=["favorite"])
)
for chat_message in chat.objects:
    print(chat_message.reactions, chat_message.object)

Outputs:

['favorite'] Testing...
1 Like

thank you for the help! :smiley:

1 Like