Get user's dialogs.
List of user's dialogs.
await client.messages.getDialogs() Copy
await client.messages.getDialogs()
Get messages from dialog with user.
Object with required fields.
List of dialog's messages.
await client.messages.getDialog({ userName: 'ECS' }) Copy
await client.messages.getDialog({ userName: 'ECS' })
Send a message.
await client.messages.sendMessage({ userName: 'ECS', text: 'Holy guacamole'}) Copy
await client.messages.sendMessage({ userName: 'ECS', text: 'Holy guacamole'})
Get user's dialogs.