Elements
Avatar
The Avatar
class allows you to display an avatar image next to a message instead of the author name.
You need to send the element once. Next if the name of an avatar matches the name of an author, the avatar will be automatically displayed.
You must provide either an url or a path or content bytes.
Attributes
name
str
The name of the avatar. This will be used to replace author names.
url
str
The remote URL of the avatar image source.
path
str
The local file path of the avatar image.
content
bytes
The file content of the avatar image in bytes format.