nonebot-adapter-qq 1.3.2__py3-none-any.whl → 1.3.4__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- nonebot/adapters/qq/event.py +10 -0
- nonebot/adapters/qq/models/guild.py +1 -1
- {nonebot_adapter_qq-1.3.2.dist-info → nonebot_adapter_qq-1.3.4.dist-info}/METADATA +1 -1
- {nonebot_adapter_qq-1.3.2.dist-info → nonebot_adapter_qq-1.3.4.dist-info}/RECORD +6 -6
- {nonebot_adapter_qq-1.3.2.dist-info → nonebot_adapter_qq-1.3.4.dist-info}/LICENSE +0 -0
- {nonebot_adapter_qq-1.3.2.dist-info → nonebot_adapter_qq-1.3.4.dist-info}/WHEEL +0 -0
nonebot/adapters/qq/event.py
CHANGED
@@ -387,6 +387,16 @@ class GroupAtMessageCreateEvent(QQMessageEvent):
|
|
387
387
|
group_openid: str
|
388
388
|
to_me: bool = True
|
389
389
|
|
390
|
+
@override
|
391
|
+
def get_message(self) -> Message:
|
392
|
+
# tmp fix to remove space before text due to at not in content
|
393
|
+
msg = Message.from_qq_message(self)
|
394
|
+
if msg and msg[0].type == "text":
|
395
|
+
msg[0].data["text"] = msg[0].data["text"].lstrip()
|
396
|
+
if not hasattr(self, "_message"):
|
397
|
+
setattr(self, "_message", msg)
|
398
|
+
return getattr(self, "_message")
|
399
|
+
|
390
400
|
@override
|
391
401
|
def get_user_id(self) -> str:
|
392
402
|
return self.author.member_openid
|
@@ -2,19 +2,19 @@ nonebot/adapters/qq/__init__.py,sha256=u2bR9HLdgIEV22nu2VJeUFscklTUj8DN4650q0k5S
|
|
2
2
|
nonebot/adapters/qq/adapter.py,sha256=NLEgraL3kMOjdoSysrpDiaWjgxlJIxDmCRyYBvTyKyI,14303
|
3
3
|
nonebot/adapters/qq/bot.py,sha256=8f3ZPM0Zed1OAsItW7LOVMGCIfZ49ZiFIWJ5gbdpHi8,59067
|
4
4
|
nonebot/adapters/qq/config.py,sha256=9EbzpCFnWyMNXWlTZmx1WYKbEl1I9KMrTf9bIf9r7dg,1979
|
5
|
-
nonebot/adapters/qq/event.py,sha256=
|
5
|
+
nonebot/adapters/qq/event.py,sha256=Fp-OrJrmlaVZL9zZ8evnG4iXxKRpJbhDGKm99y9WOSU,18182
|
6
6
|
nonebot/adapters/qq/exception.py,sha256=8Xa9NwYyO7Ih0owBAC_zmEiIRAA8GjgQcoJcF5ogo0g,2701
|
7
7
|
nonebot/adapters/qq/message.py,sha256=IJu_sDUT2Hcd0-VfT-kzBxq3mMxbzOOSiNwfBjCcgQk,11254
|
8
8
|
nonebot/adapters/qq/models/__init__.py,sha256=AahR-O5B_1c8dMXHpDH68o4qojhF3vf4UPDGyH2MKjA,537
|
9
9
|
nonebot/adapters/qq/models/_transformer.py,sha256=Zrhno7aJKHkLnljFuyivndRKdrxtqZZaoiXOFx0JQdU,3416
|
10
10
|
nonebot/adapters/qq/models/common.py,sha256=eRqOJo1cOXkWVhFwX6oTNWNcz58v64568Grejz64Igo,3035
|
11
|
-
nonebot/adapters/qq/models/guild.py,sha256=
|
11
|
+
nonebot/adapters/qq/models/guild.py,sha256=iSNJw_sfV2oGiG824ydAUSDiFXXPQRbDc6J3Wcm8R3w,11668
|
12
12
|
nonebot/adapters/qq/models/payload.py,sha256=dg9AYDI3YjWZ3bT-mn9596glszBwmI8i751sMY_maSM,2281
|
13
13
|
nonebot/adapters/qq/models/qq.py,sha256=JUMJy33lvzkiLPc9XaPtt8dQvuX0-_I0o12VeBiTfiY,2425
|
14
14
|
nonebot/adapters/qq/permission.py,sha256=0aedypl6xymhAV3UkW0vlvHTBkJeDmOef3SxG2tPcHQ,988
|
15
15
|
nonebot/adapters/qq/store.py,sha256=X-NeSVCrxngQDPo9IXKWehERNa4sefdrYrZn5-yucF4,874
|
16
16
|
nonebot/adapters/qq/utils.py,sha256=vU0aNRIBtU4za8-2uVoRXjjcQsBw2i0SFFGX8KOuJjE,1570
|
17
|
-
nonebot_adapter_qq-1.3.
|
18
|
-
nonebot_adapter_qq-1.3.
|
19
|
-
nonebot_adapter_qq-1.3.
|
20
|
-
nonebot_adapter_qq-1.3.
|
17
|
+
nonebot_adapter_qq-1.3.4.dist-info/LICENSE,sha256=4EZBnkZPQYBvtO2KFGaUQHTO8nZ26pGeaCFchdBq_AE,1064
|
18
|
+
nonebot_adapter_qq-1.3.4.dist-info/METADATA,sha256=qSVnDb_yk4y9EhQIMSZzUMFf5cGCrK93k1hGRYCyIL8,2768
|
19
|
+
nonebot_adapter_qq-1.3.4.dist-info/WHEEL,sha256=FMvqSimYX_P7y0a7UY-_Mc83r5zkBZsCYPm7Lr0Bsq4,88
|
20
|
+
nonebot_adapter_qq-1.3.4.dist-info/RECORD,,
|
File without changes
|
File without changes
|