Skip to main content
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

str
required
The original author name.

Returns

str
required
The 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: