symphony.bdk.core.service.message.message_parser#

This module contains a set of util functions that can be used on incoming V4Message such as: extracting entities like Mentions, Hashtags, Cashtags, Emojis and extracting text content from presentationML contained in the message.

Functions

get_cashtags(message)

Parse data inside an incoming message and returns a list containing the text of the cashtags found

get_emojis(message)

Parse data inside an incoming message and returns a map containing the list of emojis found.

get_hashtags(message)

Parse data inside an incoming message and returns a list containing the text of the hashtags found

get_mentions(message)

Parse data inside an incoming message and returns a list containing the user ids corresponding to the users mentioned

get_text_content_from_message(message)

Get text content from PresentationML on incoming messages