mirror of
https://github.com/mamoe/mirai.git
synced 2025-03-24 14:30:09 +08:00
Add Contact.sendMessage(String)
This commit is contained in:
parent
9c5bfb3bf5
commit
3bdfd21df6
@ -69,6 +69,13 @@ abstract class Contact : CoroutineScope, ContactJavaFriendlyAPI(), ContactOrBot
|
||||
@JvmSynthetic
|
||||
abstract suspend fun sendMessage(message: Message): MessageReceipt<Contact>
|
||||
|
||||
@Suppress("INVISIBLE_MEMBER", "INVISIBLE_REFERENCE", "VIRTUAL_MEMBER_HIDDEN", "OVERRIDE_BY_INLINE")
|
||||
@kotlin.internal.InlineOnly // purely virtual
|
||||
@JvmSynthetic
|
||||
suspend inline fun sendMessage(message: String): MessageReceipt<Contact> {
|
||||
return sendMessage(message.toMessage())
|
||||
}
|
||||
|
||||
/**
|
||||
* 上传一个图片以备发送.
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user