routing
parse_addressed_message(content, addressing='@')
¶
In a message-string containing possibly multiple @
E.g. "thank you @bob, now I will ask @alice again. @alice, where is the mirror?" => ("alice", "where is the mirror?")
Parameters:
Name | Type | Description | Default |
---|---|---|---|
content |
str
|
The message content. |
required |
addressing |
str
|
The addressing character. Defaults to "@". |
'@'
|
Returns:
Type | Description |
---|---|
Optional[str]
|
Tuple[Optional[str], str]: |
str
|
A tuple containing the last addressee and the subsequent message content. |