mirror of
https://github.com/mamoe/mirai.git
synced 2026-08-22 22:23:32 +08:00
3.7 KiB
3.7 KiB
Mirai - Contacts
基于面向对象的设计,可直接获取 Contact 的属性如 nick,permission。
要主动发送一条消息,调用 Contact.sendMessage() 即可*(后文介绍)*。
可通过 Bot.getFriend 或 Bot.getGroup 获取相关对象,也可以通过事件获取*(后文介绍)*。
下一步,Events