1
0
mirror of https://github.com/Mrs4s/MiraiGo.git synced 2025-07-04 21:33:26 +00:00

199 Commits

Author SHA1 Message Date
ee8edcfe32 fix: failed get nt qq img (#343) 2023-10-10 10:25:41 +09:00
65a3c56340 feat: 添加IMesssage接口并实现 (#335)
* -- 添加接口并实现:
 - 添加消息类型接口:IMessage,设定方法:获取消息元素列表,获取聊天id,获取消息文本;以privateMessage,groupMessage,TempMessage实现该接口
-- 目的:
 - 对群聊/私聊/临时消息做出回应有相同的处理逻辑时不用根据消息类型不同定义不同方法

* -- add
 - sync upstream change

* -- ci
 - sync upstream change

* Delete sync.yml

---------

Co-authored-by: GH Action - Upstream Sync <action@github.com>
Co-authored-by: 源文雨 <41315874+fumiama@users.noreply.github.com>
2023-08-01 09:33:55 +08:00
7c68459666 fix private image size 2023-06-10 16:15:57 +08:00
2156430a24 message: update new face 2023-02-13 00:17:21 +08:00
481c830f56 client: fix electron qq url 2023-02-11 20:14:09 +08:00
d3b8c5f700 internal/proto: add SInt[32|64]
also simplify some code.
2022-09-25 16:26:53 +08:00
e657427abd message: add String for SourceType 2022-08-31 21:59:48 +08:00
5b616d65f7 all: adapt new proto2 api 2022-05-24 09:59:58 +08:00
59db392118 ci(chore): Fix stylings 2022-05-24 01:55:56 +00:00
ae36149502 add group_id in forward msg node (#275) 2022-05-24 09:55:33 +08:00
2b2be6693d client,binary: minor changes 2022-05-23 10:28:50 +08:00
9422ce4751 all: optimize
detected by go-perfguard
2022-03-27 22:42:48 +08:00
8b86fe4d9c client: refactor forward message api 2022-03-21 21:37:12 +08:00
714961d68f client: use %x placeholder 2022-03-20 13:48:02 +08:00
436482c7db ci(chore): Fix stylings 2022-03-19 17:06:33 +00:00
79f34a47b8 简化URL处理逻辑 (#263)
* update image url

* %X
2022-03-20 01:06:05 +08:00
5903226f25 client: remove some err check
`(*bytes.Buffer).Write` always return nil error, so we don't need error check
2022-03-19 10:03:37 +08:00
6b5e7d35f0 client: new API UploadImage, UploadVoice and deprecate old API 2022-02-21 23:35:44 +08:00
1e32793eef client: combine upload group video and guild video 2022-02-21 17:31:05 +08:00
0578942d86 Revert "fix reply seq"
This reverts commit 6692c4acb8.
2022-02-18 14:57:47 +08:00
d53bf8503e client/pb: re-generate proto files 2022-02-14 00:51:36 +08:00
6692c4acb8 fix reply seq 2022-02-12 16:16:37 +08:00
28637c41be internal/proto: move binary.DynamicProtoMessage to proto.DynamicMessage 2022-02-10 21:56:40 +08:00
8258176fba Add MarketFaceElement case to message.ToString() (#241) 2022-02-07 19:51:33 +08:00
ab72f3dc28 Revert "message: remove GroupImage Width & Height"
This reverts commit 9d618e2d9f.

handle zero width and height in another way.
2021-12-28 22:09:53 +08:00
9d618e2d9f message: remove GroupImage Width & Height
sometimes these fields may be zero causing send failures
2021-12-28 21:48:23 +08:00
c51e1956e8 feat: add util function to split long message (#184)
* feat: add util function to split long message

* fix: move util to message/message.go to avoid import cycle

* fix: review opinions and add test
2021-12-23 12:57:18 +08:00
72ffc08b72 ci(chore): Fix stylings 2021-12-18 09:39:50 +00:00
e700751008 解析猜拳&随机骰子
安卓QQ发来的骰子Name值是随机骰子
2021-12-18 17:35:32 +08:00
75d9c4deb4 石头剪子布
生成石头剪子布
2021-12-18 17:31:11 +08:00
dc66c61d57 feat: link nested forward message 2021-12-17 12:27:14 +08:00
d8cae988c6 Merge branch 'master' of github.com:/Mrs4s/MiraiGo 2021-12-17 00:20:48 +08:00
68e387e91b feat: at channel support 2021-12-17 00:20:27 +08:00
ff9ef5135c remove: stash.go
these function seems not useful
2021-12-16 21:47:48 +08:00
8b99d3147e style: fix issues reported by golangci-lint 2021-12-16 20:21:49 +08:00
d55929cf12 feat: PullGuildChannelMessage 2021-12-13 20:53:55 +08:00
8b4b8269f3 feat: GetTopicChannelFeeds 2021-11-27 01:21:04 +08:00
ec4cd4a6f3 style: internal/proto
use this package for conveniently replacing proto package
in the future.
2021-11-22 22:05:19 +08:00
3216c69d46 feat: support receive Animated Sticker 2021-11-19 23:02:45 +08:00
aa92a8bb6c feat: support send Animated Stickers 2021-11-19 22:07:46 +08:00
19e2050004 feat: upload guild short video 2021-11-18 21:28:17 +08:00
511e8c41ed feat: guild at encode 2021-11-15 01:08:54 +08:00
2e441ed925 drop SendGroupGift support
QQ no longer provide free group gifts, so we should drop it
2021-11-14 21:52:09 +08:00
8427db5347 feat: support guild at message decode 2021-11-14 17:16:01 +08:00
d3a21e577b fix: guild image type error 2021-11-13 02:30:36 +08:00
9350021852 feat: SendGuildChannelMessage return *message.GuildChannelMessage 2021-11-12 02:17:01 +08:00
b644f5c158 feat: UploadGuildImage 2021-11-12 01:50:30 +08:00
cc17020dab feat: FindChannel method 2021-11-10 00:59:59 +08:00
190c494409 fix: method missing 2021-11-09 03:25:42 +08:00
af9ed48cb7 feat: query guild service image 2021-11-09 03:16:26 +08:00