Him188
364ffc334a
Fix typo
2020-04-25 13:13:33 +08:00
Him188
626b1d6a5d
Add tests for Message.isContentEmpty()
2020-04-25 13:13:18 +08:00
Him188
e3add186fb
Add Message.isContentNotEmpty
2020-04-25 12:50:31 +08:00
Him188
cebd4a8079
Fix typo
2020-04-25 12:47:06 +08:00
Him188
86aacc5d47
Add Message.isContentEmpty
2020-04-25 12:40:40 +08:00
Him188
48362a241c
Add check: ForwardMessage.nodeList mustn't be empty
2020-04-25 12:34:39 +08:00
Him188
6a631418d2
Add docs
2020-04-25 12:31:59 +08:00
Him188
bf4b56ab07
Fix calculateImageMd5ByImageId
2020-04-24 16:55:39 +08:00
Him188
09524da1e9
Add docs, rearrange implementations
2020-04-24 16:41:21 +08:00
Him188
716e3ade48
Rearrange deprecated functions
2020-04-24 15:14:06 +08:00
Him188
077885465b
Add docs, rearrange implementations
2020-04-24 15:12:50 +08:00
Him188
92a1b0d4df
Add imageId regex, fix #262
2020-04-24 15:12:33 +08:00
Him188
96ed65442d
Fix missing ForwardMessage.Key
in firstOrNull
2020-04-23 21:36:39 +08:00
Him188
5ad5c17a60
Add examples
2020-04-23 20:18:48 +08:00
Him188
2d96314d72
Cleanup
2020-04-23 19:29:19 +08:00
Him188
5b2ae6e9ad
Simplify Image structure, close #244
2020-04-23 17:10:21 +08:00
Him188
83f721c59a
Cleanup
2020-04-23 14:20:55 +08:00
Him188
1b4e1475a0
Support ForwardMessage DSL
2020-04-23 14:17:24 +08:00
Him188
efb186e26d
Add ContactMessage.senderName
2020-04-23 11:57:38 +08:00
Him188
454205a6af
Add ContactMessage.time
2020-04-23 11:52:44 +08:00
Him188
1786c95e07
Support merged forward messages!
2020-04-22 22:09:53 +08:00
Him188
bb4c13d789
Add docs
2020-04-22 20:13:34 +08:00
Him188
7116173ed7
Rearrange MessageSource
2020-04-22 20:07:48 +08:00
Him188
3545482034
Fix #253
2020-04-22 18:39:10 +08:00
Him188
66f4620292
Add MessageSource.internalId
, support OfflineMessageSource
building
2020-04-22 18:35:30 +08:00
Him188
6311c39c97
Enhance MessageChainBuilder
2020-04-22 18:34:44 +08:00
Him188
0acb89cd36
Extract implementations; Introduce OnlineMessageSource.toOffline
2020-04-22 17:13:09 +08:00
Him188
3e644426c8
Make MessageChainBuilder
open
2020-04-22 17:03:06 +08:00
Him188
a63af80668
Deprecate QQ
...
Introduce `Friend` extending `User`
Introduce `User` acting as the superclass of `Friend` and `Member`
Add extensions `Member.asFriend`, etc.
Remove specialized `Contact.hashCode` and `Contact.equals`, inherit from `kotlin.Any`
Specify `toString` behavior in abstract `Contact` classes, instead of in implementation classes.
Add virtual member `Contact.sendMessage(String)`
Migrate the project from using `QQ` to `Friend`
Remove multiplatform Contact class structure, keep them common.
Remove extension `Long.at` in `GroupMessage`, `QQ.at` in `ContactMessage`.
Add `At.asMember()` in `GroupMessage`.
Make `calculateGroupUinByGroupCode`, `calculateGroupCodeByGroupUin` static on JVM.
2020-04-22 16:08:04 +08:00
Him188
3c9b057ad0
Rename Identified
to ContactOrBot
, remove experimental annotations
2020-04-22 14:03:29 +08:00
Him188
422e8a9b4b
Rename MessagePacket.kt
to ContactMessage.kt
2020-04-21 14:37:54 +08:00
Him188
5af1d0435a
Add MessageChain.contentEquals
2020-04-20 22:04:39 +08:00
Him188
f845b5cded
Add Message.isPlain
, Message.isNotPlain
2020-04-20 21:52:22 +08:00
Him188
edd823c7bc
Improve docs
2020-04-20 21:52:07 +08:00
Him188
16fec25747
Fix typo, add MessageChain.allContent
, MessageChain.noneContent
2020-04-20 21:51:45 +08:00
Him188
9270195d31
Fix CombinedMessage.toString, add caches.
2020-04-20 21:28:54 +08:00
Him188
96610b30e3
Support CustomMessage
2020-04-20 21:26:16 +08:00
Him188
162dfb7c71
Improve performance
2020-04-20 17:08:45 +08:00
Him188
c4b3eade4a
MessageChain.firstOrNull
rather than MessageChain.getOrNull
on JVM
2020-04-20 17:06:28 +08:00
Him188
1542b73fa9
Improve KDoc
2020-04-20 16:55:44 +08:00
Him188
c8cd03ac02
Fix function name on JVM, from MessageReceipt.recall
to MessageReceipt.recallIn
2020-04-20 16:55:07 +08:00
Him188
1eff81d41f
Use first
on JVM
2020-04-20 16:54:20 +08:00
Him188
1fae390fba
Enhance MessageChainBuilder
2020-04-20 16:23:37 +08:00
Him188
4fa9f1ac5b
Add missing @BotAsMember
2020-04-18 16:58:45 +08:00
Him188
405696d9ac
Use sequenceId as MessageSource.id
, await sequenceId on Group.sendMessage
2020-04-18 16:56:18 +08:00
Him188
7f347feedd
Deprecate openChannel
2020-04-17 21:36:39 +08:00
Him188
ac6f411eb2
Add equals
and hashCode
to Message
s
2020-04-17 14:31:43 +08:00
Him188
991f46fe64
Introduce ServiceMessage
, fix #229 , fix #224
2020-04-15 19:14:59 +08:00
Him188
b0718c5b2e
Add experimental annotations
2020-04-13 19:15:35 +08:00
Him188
0a2152dc73
Add SingleMessage.asMessageChain
2020-04-13 18:56:20 +08:00