Commit Graph

21 Commits

Author SHA1 Message Date
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
7f498604d6 Add warning for LowLevelApi 2020-04-09 09:12:02 +08:00
Him188
2b49a7586f Reconstruct MessageSource, fix #197, #133 2020-04-04 22:08:53 +08:00
Him188
3773548983 Replace use of Bot.uin with Bot.id 2020-04-02 19:27:40 +08:00
Him188
8df45b4072 Remove _lowLevelSendLongGroupMessage, fix length counting 2020-03-30 16:01:30 +08:00
Him188
a6079f3eaf Support long message in general sendMessage 2020-03-29 13:56:11 +08:00
Him188
2aaff44c74 Add missing @SinceMirai 2020-03-29 12:49:47 +08:00
Him188
3f523e6f77 Long message 2020-03-27 13:27:34 +08:00
Him188
5dc0475a73 Misc improvements 2020-03-24 15:45:49 +08:00
luo123
69d5bbd7fa group active data 2020-03-17 02:49:04 -05:00
Him188
cae3251291 Mark with @SinceMirai 2020-03-17 13:06:34 +08:00
Him188
f015294367 Improve performance 2020-03-17 12:57:26 +08:00
luo123
9ff791e550 a little change 2020-03-14 11:43:43 +08:00
luo123
6973488db7 move to lowLevelApi.kt 2020-03-14 11:01:21 +08:00
Him188
ef29345d71 Use RequiresOptIn 2020-03-08 00:47:14 +08:00
Him188
e222465ded Make account internal 2020-03-07 00:24:37 +08:00
Him188
60b6eab73e Revert "Update to Kotlin 1.3.70"
This reverts commit 2e57e358
2020-03-04 13:58:01 +08:00
Him188
2e57e358c3 Update to Kotlin 1.3.70 2020-03-04 08:54:56 +08:00
Him188
dc7d73f148 Misc improvements 2020-03-03 08:43:32 +08:00
Him188
3748963a03 Support MessageReceipt.quoteReply for group 2020-03-01 01:55:03 +08:00
Him188
1e9b34a636 Add low-level apis 2020-02-29 14:46:40 +08:00