1
0
mirror of https://github.com/Mrs4s/go-cqhttp.git synced 2025-05-05 03:23:49 +08:00

272 Commits

Author SHA1 Message Date
源文雨
19dd37a938
fix(lint): if-block 2023-08-01 09:36:21 +08:00
源文雨
a3ad233cd9
fix: group not found report (#2312) (#2337)
解决以下问题:
当群组踢人时,该人不在群内,返回“群聊不存在”的BUG

https://github.com/Mrs4s/go-cqhttp/issues/1774#issue-1459854639

Co-authored-by: PSoul <psoul1@163.com>
2023-08-01 08:55:59 +08:00
Janet-Baker
5bf64ee743
Fix #2119 (#2186)
* fix: 尝试修复 #2070 (#2071)

* Close file after uploading it to private chat

fix #2119
上传文件到私聊后,释放文件。
2023-06-04 09:56:40 +08:00
wdvxdr
4ceacc38d5 onebot: move to pkg/onebot 2023-02-27 15:17:27 +08:00
wdvxdr
c80adf5795 coolq: handle v11/v12 specific message
(1) V11: at V12: mention/mention_all
(2) V11: record V12: voice
2023-02-16 23:28:31 +08:00
wdvxdr
debc1ed1ae coolq: unified string/array message conversion
change to 2 step:
(1): parse to []internal/msg.Element, use msg.ParseObject/msg.ParseString
(2): transform to []IMessageElement, can share functions
2023-02-16 14:51:23 +08:00
wdvxdr
43dd9aa76d rf: move coolq/cqcode to internal/msg 2023-02-15 22:29:42 +08:00
wdvxdr
9c0525b3d4 all: use *onebot.Spec 2023-02-15 21:49:05 +08:00
wdvxdr
cf717ad762 internal/onebot: new package 2023-02-15 14:24:57 +08:00
wdvxdr
6b3aabd9af update MiraiGo 2023-02-14 23:27:15 +08:00
wdvxdr
59ed726c6a Merge branch 'dev' into onebot.v12
# Conflicts:
#	coolq/api.go
#	server/websocket.go
2023-02-14 19:23:39 +08:00
wdvxdr
17420feeac coolq: add sign in api get_stranger_info
Fixes #1853
2023-02-09 22:33:15 +08:00
Pandaft
2483eb09c4
fix: set_group_ban limit error (#1846)
* fix: set_group_ban limit error
2023-02-04 13:07:34 +08:00
BeautyyuYanli
fc0845b16d
Support API set_group_anonymous (#1875)
* support api set_group_anonymous

* update MiraiGo version

* fix bug due to MiraiGo update
2023-02-01 13:22:56 +08:00
wdvxdr
20c62111f5 all: run gofmt -w -r 'interface{} -> any' 2023-01-26 23:03:08 +08:00
wdvxdr
84e061f321 make golangci-lint happy 2023-01-26 22:59:04 +08:00
Mrs4s
0e08ceccdd
api: get_version_info remove protocol field & add protocol_name field 2022-12-07 03:27:19 +08:00
wdvxdr
f4117bfb70 internal/download: move download logic to this package
also disable http2 when downloading, may fix some issue

For #1563
2022-10-13 21:27:36 +08:00
Mrs4s
bae00b557e
feat: send_forward_msg api will be returned forward id 2022-09-08 22:20:43 +08:00
sclock
0377e7f803 合并转发增加log输出 2022-09-08 19:27:13 +08:00
Mrs4s
140192c76a
fix: panic of getting group code error in forward message 2022-09-08 18:43:34 +08:00
Mrs4s
933bdee18e
optimize the return value of group-message sending error 2022-08-14 01:40:14 +08:00
秋葉杏
36bf579e0f
feat: del group notice (#1567)
* update dep

* feat: _del_group_notice

* doc: get_group_notice && del_group_notice
2022-07-09 12:57:53 +08:00
Akiba
a0fba6ad54
fix: #1557 2022-06-25 21:36:30 +08:00
Akiba
7e750352c4
fix: #1558 2022-06-25 21:06:37 +08:00
Mrs4s
f772996418
fix #1556 2022-06-25 17:40:15 +08:00
wdvxdr
7707e7854c
feat: add vip_level in get_stranger_info
AntiVIP10Bot is ready. 😇
2022-06-22 10:02:54 +08:00
wdvxdr
86f5b7f5f5
coolq: support upload_private_file
pc client can't receive file sent by this api.
2022-06-20 19:49:12 +08:00
wdvxdr
23d594be29
coolq: support upload_private_file
pc client can't receive file sent by this api.
2022-06-20 16:12:22 +08:00
Mrs4s
672dafdb9d
feat: cross version ID converter & audio/mention segment support 2022-06-17 15:39:35 +08:00
github-actions[bot]
847ef6d415 ci(chore): Fix stylings 2022-06-15 08:04:25 +00:00
Mrs4s
f900fd62fb
feat: routing api by version & inject version field 2022-06-15 16:02:52 +08:00
Mrs4s
d25209c366
fix #1520 2022-06-05 17:35:37 +08:00
源文雨
15602e1daa
revert: re-include url in message (#1521)
* revert: re-include url in message

* fix: wrong writer usage

* fix: composite literal uses unkeyed fields

* 优化buffer

* fix: illegal use of non-zero Builder

* fix: illegal use of non-zero Builder

* fix: make lint happy

* fix: replace io.Writer to *strings.Builder

* fix: replace io.Writer to *strings.Builder
2022-05-30 14:17:34 +08:00
synodriver
c275806c62
add group_id for get_forward_msg (#1510) 2022-05-27 17:10:23 +08:00
秋葉杏
d313effb79
feat: send forward msg to private (#1513)
* feature(forward_msg): support send forward msg to private

Added two apis: send_forward_msg & send_private_forward_msg

* typo: messages

* fix: message source target id
2022-05-27 14:24:48 +08:00
wdvxdr
9e136b21fa
coolq: refactor event msg 2022-05-26 20:45:05 +08:00
wdvxdr
296668441f
coolq: unify converting IMessage to string&array message 2022-05-25 15:24:48 +08:00
wdvxdr
111a5506b9
dep: update MiraiGo 2022-05-24 15:07:24 +08:00
wdvxdr
c141501ae5
all: update MiraiGo and some minor changes 2022-05-23 11:13:44 +08:00
wdvxdr
d522378315
all: optimize
detected by go-perfguard
2022-03-27 23:01:47 +08:00
wdvxdr
112441d76e
coolq: refactor send forward message 2022-03-21 21:41:29 +08:00
wdvxdr
062eea62ab
coolq: use generic sync.Map 2022-03-20 15:19:47 +08:00
wdvxdr
429ff80cf0
update MiraiGo & remove _get_vip_info
Fixes #1429
2022-03-18 21:39:28 +08:00
千橘 雫霞
cbcfee9f69
feat: support get group notice #493 (#1418)
* feat: support get group notice #493

* feat: update `go.mod`

* fix
2022-03-18 21:15:53 +08:00
wdvxdr
34613306b3
internal/mime: use stdlib to detect mimetype 2022-03-18 17:07:10 +08:00
wdvxdr
c00e07dec9
coolq: adapt generic event handle & update MiraiGo 2022-03-01 16:30:23 +08:00
wdvxdr
987daad785
coolq: allow upload media concurrently for normal message 2022-02-22 14:46:26 +08:00
千橘 雫霞
d1f143ebf7
feat: set qq profile (#1389)
* feat: set qq profile

* refactor: support empty field
2022-02-22 13:38:42 +08:00
wdvxdr
c7f0aed1b7
coolq: adapt new MiraiGo upload api 2022-02-21 23:44:49 +08:00