Compare commits
2 Commits
implement_
...
dev
| Author | SHA1 | Date |
|---|---|---|
|
|
9282396483 | |
|
|
acc3a4cd47 |
|
|
@ -21,7 +21,8 @@ from .exceptions import SubscriptionError
|
||||||
|
|
||||||
async def build_notice(html_content) -> TextMessageEventContent:
|
async def build_notice(html_content) -> TextMessageEventContent:
|
||||||
"""
|
"""
|
||||||
Build a notice message.
|
Build a notice message with optional arguments. The html_content can contain
|
||||||
|
placeholders like %s which will be replaced by the arguments.
|
||||||
"""
|
"""
|
||||||
text_content = await parse_html(html_content.strip())
|
text_content = await parse_html(html_content.strip())
|
||||||
return TextMessageEventContent(
|
return TextMessageEventContent(
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue