Misceallaneous
author_rename and Message author
This documentation covers two methods for setting or renaming the author of a message to display more friendly author names in the UI: the author_rename
decorator and the Message author specification at message creation.
Method 1: author_rename
Useful for renaming the author of a message dynamically during the message handling process.
Parameters
orig_author
str
requiredThe original author name.
Returns
author
str
requiredThe renamed author
Usage
Method 2: Message author
Allows for naming the author of a message at the moment of the message creation.
Usage
You can specify the author directly when creating a new message object:
Was this page helpful?