send_message
Sending a message to a character
async with client.connect('TOKEN') as chat2:
await chat2.send_message('CHAR', 'CHAT_ID', 'TEXT', {AUTHOR})
char [str]
Character ID
chat_id [str]
Unique ID for character history
text [str]
Message text
author [dict]
You must specify who is sending the message. You can write anything in the name
{
'author_id': 'YOUR ID',
'is_human': True,
'name': 'NAME'
}
Last updated