From 6c6175d8cf42512515c37c60299240968888cc29 Mon Sep 17 00:00:00 2001 From: YiNakaD <2931006818@qq.com> Date: Thu, 19 Sep 2024 15:16:01 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20=E6=B7=BB=E5=8A=A0=E4=BB=A3=E7=A0=81?= =?UTF-8?q?=E5=BC=95=E7=94=A8=E8=AF=B4=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../alicebot/adapter/telegram/message.py | 2 +- packages/alicebot-adapter-telegram/codegen.py | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/packages/alicebot-adapter-telegram/alicebot/adapter/telegram/message.py b/packages/alicebot-adapter-telegram/alicebot/adapter/telegram/message.py index c47bf9f..7949fd0 100644 --- a/packages/alicebot-adapter-telegram/alicebot/adapter/telegram/message.py +++ b/packages/alicebot-adapter-telegram/alicebot/adapter/telegram/message.py @@ -1,5 +1,5 @@ """Telegram 适配器消息。""" - +# Based on: https://github.com/nonebot/adapter-telegram/blob/beta/nonebot/adapters/telegram/message.py # ruff: noqa: D102 from typing_extensions import Self, override diff --git a/packages/alicebot-adapter-telegram/codegen.py b/packages/alicebot-adapter-telegram/codegen.py index 1c2caec..92e22c0 100644 --- a/packages/alicebot-adapter-telegram/codegen.py +++ b/packages/alicebot-adapter-telegram/codegen.py @@ -1,4 +1,8 @@ -"""用于生成 Telegram 模型和 API 代码的代码生成器。""" +"""用于生成 Telegram 模型和 API 代码的代码生成器。 + +使用代码生成器来生成 Telegram 模型的想法来自于 https://github.com/nonebot/adapter-telegram。 +所使用的 Telegram API 标准来自 https://github.com/PaulSonOfLars/telegram-bot-api-spec。 +""" import subprocess from keyword import kwlist