From 9a66675ed85eecfe300968be7cac6ed3f8c7e215 Mon Sep 17 00:00:00 2001 From: 627 Date: Mon, 18 Mar 2024 12:00:00 +0800 Subject: [PATCH 01/12] update content for telegram and slack --- locales/en.yaml | 157 +++++++++++++++++++++++++++++++++--------------- 1 file changed, 107 insertions(+), 50 deletions(-) diff --git a/locales/en.yaml b/locales/en.yaml index 9eafd7d..7170dae 100644 --- a/locales/en.yaml +++ b/locales/en.yaml @@ -2,7 +2,7 @@ system: commands: groups: basic: - name: 基础命令 + name: Basic Commands commands: start: help: Start interacting with the bot @@ -21,84 +21,141 @@ system: modules: telegram: chatMigration: - notification: | - {{.Name}} @{{.Username}} 监测到您的群组已从 群组(group) 升级为了 超级群组(supergroup),届时,群组的 ID 将会发生变更,现已自动将过去的历史记录和数据留存自动迁移到了新的群组 ID 名下,之前的设置将会保留并继续沿用,不过需要注意的是,由于 Telegram 官方的限制,迁移事件前的消息 ID 将无法与今后发送的消息 ID 相兼容,所以当下一次总结消息时将不会包含在迁移事件发生前所发送的消息,由此带来的不便敬请谅解。 + notification: | + {{.Name}} @{{.Username}} has upgraded your group to a supergroup, resulting in a change of group ID. We have automatically migrated all historical records and data to the new group ID. All previous settings will remain in effect. However, due to Telegram's restrictions, message IDs from before the migration won't match those sent afterwards. This means messages sent before the upgrade won't be included in future summaries. We apologize for any inconvenience. - welcome: - messageSuperGroup: | - 🤗 欢迎使用 @{{.Username}}! +welcome: + messageSuperGroup: | + 🤗 Welcome to @{{.Username}}! - - 如果要让我帮忙阅读网页文章,请直接使用开箱即用的命令 /smr@{{.Username}} 要阅读的链接; + - For web page article reading, use the command /smr@{{.Username}} article link. - - 如果想要我帮忙总结本群组的聊天记录,请以管理员身份将我配置为本群组的管理员(可以关闭所有权限),然后在非匿名和非其他身份的身份下(推荐,否则容易出现权限识别错误的情况)发送 /configure_recap@{{.Username}} 来开始配置本群组的聊天回顾功能。 + - To summarize this group's chat history, set me as this group's admin (permissions can be off) under a recognizable identity (recommended to avoid permission errors), then send /configure_recap@{{.Username}} to activate the chat recap feature. - - 如果你在授权 Bot 管理员之后希望 Bot 将已经记录的消息全数移除,可以通过撤销 Bot 的管理员权限来触发 Bot 的历史数据自动清理(如果该部分代码未经其他 Bot 实例维护者修改的话)。 + - To delete all messages recorded by the bot, simply revoke my admin rights. This will trigger an automatic cleanup of the bot’s historical data (unless this feature has been altered by another bot maintainer). - 如果还有疑问的话可以通过 + For questions: - 1. 执行帮助命令 /help@{{.Username}} 来查看支持的命令; - 2. 前往 Bot 所在的开源仓库提交 Issue 问询开发者。 + 1. Use /help@{{.Username}} to view supported commands. + 2. Visit the bot's GitHub repository to ask the developer. - 祝你使用愉快! - messageNormalGroup: | - 🤗 欢迎使用 @{{.Username}}! + Enjoy your use! - - 如果要让我帮忙阅读网页文章,请直接使用开箱即用的命令 /smr@{{.Username}} 要阅读的链接; + messageNormalGroup: | + 🤗 Welcome to @{{.Username}}! - - 如果想要我帮忙总结本群组的聊天记录,请以管理员身份将我配置为本群组的管理员(可以关闭所有权限),然后在非匿名和非其他身份的身份下(推荐,否则容易出现权限识别错误的情况)发送 /configure_recap@{{.Username}} 来开始配置本群组的聊天回顾功能。 + - For web page article reading, use the command /smr@{{.Username}} article link. - - 如果你在授权 Bot 管理员之后希望 Bot 将已经记录的消息全数移除,可以通过撤销 Bot 的管理员权限来触发 Bot 的历史数据自动清理(如果该部分代码未经其他 Bot 实例维护者修改的话)。 + - To summarize this group's chat history, set me as this group's admin (permissions can be off) under a recognizable identity (recommended to avoid permission errors), then send /configure_recap@{{.Username}} to activate the chat recap feature. - ⚠️ 警告:你的群组尚未是超级群组(supergroup)。普通群组的消息链接引用功能无法正常工作。 + - To delete all messages recorded by the bot, simply revoke my admin rights. This triggers an automatic cleanup of the bot’s historical data (unless altered by another maintainer). - 如果你希望使用消息链接引用功能,请通过下面任意操作使其正常运作: + ⚠️ Your group is not a supergroup yet, which means the message link reference feature won't work properly. - - 短时间内将群组开放为公共群组并快速还原回私有群组; - - 通过其他操作将本群组升级为超级群组; + To enable message linking: - 如果还有疑问的话可以通过 + - Temporarily set your group to public, then revert it to private. + - Upgrade to a supergroup through other methods. - 1. 执行帮助命令 /help@{{.Username}} 来查看支持的命令; - 2. 前往 Bot 所在的开源仓库提交 Issue 问询开发者。 + For questions: + + 1. Use /help@{{.Username}} to view commands. + 2. Visit the bot's GitHub repository for developer queries. + + Enjoy your use! - 祝你使用愉快! commands: groups: summarization: - name: 量子速读 + name: Quantum Speed-Reading commands: smr: - help: 量子速读网页文章(也支持在频道中使用) 用法:/smr <链接> + help: Streamline your reading process with Quantum Speed-Reading. This feature allows you to quickly digest web articles and is also channel-compatible. To initiate, use the command :/smr <链接> noLinksFound: - telegram: 没有找到链接,可以发送一个有效的链接吗?用法:/smr <链接> - slackOrDiscord: 你发来的链接无法被理解,可以重新发一个试试。用法:`/smr <链接>` + telegram: It appears no link was detected. Could you kindly provide a valid URL? For usage:/smr <link>. + slackOrDiscord: It appears no link was detected. Could you kindly provide a valid URL? For usage:`/smr ` invalidLink: - telegram: 你发来的链接无法被理解,可以重新发一个试试。用法:/smr <链接> - slackOrDiscord: 你发来的链接无法被理解,可以重新发一个试试。用法:`/smr <链接>` - reading: 请稍等,量子速读中... - rateLimitExceeded: 很抱歉,您的操作触发了我们的限制机制,为了保证系统的可用性,本命令每最多 {{ .Seconds }} 秒使用一次,请您耐心等待 {{ .SecondsToBeWaited }} 秒后再试,感谢您的理解和支持。 - failedToRead: 量子速读失败了,可以再试试? - failedToReadDueToFailedToFetch: 量子速读的链接读取失败了哦。可以再试试? - contentNotSupported: 暂时不支持量子速读这样的内容呢,可以换个别的链接试试。 + telegram: We were unable to process the link you provided. Please ensure the URL is correct and try again. Usage:/smr <link>. + slackOrDiscord: We were unable to process the link you provided. Please ensure the URL is correct and try again. Usage:`/smr ` + reading: Quantum Speed-Reading is currently in action, please hold on for a moment... + rateLimitExceeded: Our apologies, but your recent action has has reached the rate limit maintain due to maintain service stability. This command may be utilized once every {{ .Seconds }} seconds. We kindly ask you to wait {{ .SecondsToBeWaited }} seconds before your next attempt. Your understanding and cooperation are greatly appreciated. + failedToRead: Unfortunately, Quantum Speed-Reading was unsuccessful. Would you like to attempt it once more? + failedToReadDueToFailedToFetch: We encountered an issue retrieving the content for Quantum Speed-Reading. Perhaps another try might yield success? + contentNotSupported: The content provided does not currently support Quantum Speed-Reading. Considering another link may be beneficial. permissionDenied: No permission to send message, please try to reinstall this APP +prompts: + smr: + - role: system + content: | + You are my web article reading assistant. I will provide you with the title, author, and the main text from the webpage I've captured, and then you will summarize the article. Please meet the following requirements when summarizing: + 1. First, if the article's title is not in Chinese, translate it into simplified Chinese in a faithful, expressive, and elegant manner and place it on the first line. + 2. Then, summarize the article in under 300 words based on the information I've provided. + 3. Lastly, using your existing knowledge and experience, propose 3 questions that are creative and involve divergent thinking based on the information I've provided about the article. + 4. Please reply in simplified Chinese. + The format of your reply should be like this example (where the double curly braces need to be replaced):\n + {{Simplified Chinese title, can be omitted}}\n\nSummary: {{Summary of the article}}\n\nRelated Questions:\n1. {{Related Question 1}}\n2. {{Related Question 2}}\n3. {{Related Question 3}} +- role: user + content: | + The information related to my first request is as follows: + Article Title: {{ .Title }} + Article Author: {{ .By }} + Article Content: {{ .Content }} + Please complete the task as requested. + +system: + commands: + groups: + basic: + name: Basic Commands + commands: + start: + help: Start interacting with the bot + help: + help: Get help + message: | + Hi! 👋 Welcome to using Insights Bot! + + I currently support these commands: + + {{ .Commands }} + cancel: + help: Cancel the current activated operation + alreadyCancelledAll: There is no activated operation to cancel + +commands: + groups: + summarization: + name: Quantum Speed-Reading + commands: + smr: + help: Streamline your reading process with Quantum Speed-Reading. This feature allows you to quickly digest web articles and is also channel-compatible. To initiate, use the command: /smr <link>. + noLinksFound: It appears no link was detected. Could you kindly provide a valid URL? For usage: /smr <link>. + invalidLink: We were unable to process the link you provided. Please ensure the URL is correct and try again. Usage: /smr <link>. + reading: Quantum Speed-Reading is currently in action, please hold on for a moment... + rateLimitExceeded: Our apologies, but your recent action has has reached the rate limit maintain due to maintain service stability. This command may be utilized once every {{ .Seconds }} seconds. We kindly ask you to wait {{ .SecondsToBeWaited }} seconds before your next attempt. Your understanding and cooperation are greatly appreciated. + failedToRead: Unfortunately, Quantum Speed-Reading was unsuccessful. Would you like to attempt it once more? + failedToReadDueToFailedToFetch: We encountered an issue retrieving the content for Quantum Speed-Reading. Perhaps another try might yield success? + contentNotSupported: The content provided does not currently support Quantum Speed-Reading. Considering another link may be beneficial. + + + prompts: smr: - role: system content: | - 你是我的网页文章阅读助理。我将为你提供文章的标题、作 - 者、所抓取的网页中的正文等信息,然后你将对文章做出总结。\n请你在总结时满足以下要求: - 1. 首先如果文章的标题不是中文的请依据上下文将标题信达雅的翻译为简体中文并放在第一行 - 2. 然后从我提供的文章信息中总结出一个三百字以内的文章的摘要 - 3. 最后,你将利用你已有的知识和经验,对我提供的文章信息提出 3 个具有创造性和发散思维的问题 - 4. 请用简体中文进行回复 - 最终你回复的消息格式应像这个例句一样(例句中的双花括号为需要替换的内容):\n - {{简体中文标题,可省略}}\n\n摘要:{{文章的摘要}}\n\n关联提问:\n1. {{关联提问 1}}\n2. {{关联提问 2}}\n2. {{关联提问 3}} + You are my web article reading assistant. I will provide you with the article's title, author, and the main content captured from the web page, and then you will summarize the article. \nPlease meet the following requirements when summarizing: + 1. First, if the article's title is not in Chinese, please translate it into simplified Chinese elegantly according to the context and place it at the first line + 2. Then, summarize the article in no more than 300 words based on the information I provided + 3. Lastly, using your existing knowledge and experience, propose 3 creative and divergent questions regarding the information I provided + 4. Please reply in Simplified Chinese + The format of your reply should be like this example (where double curly braces need to be replaced): \n + {{Simplified Chinese title, optional}}\n\nSummary: {{Summary of the article}}\n\nRelated Questions:\n1. {{Related Question 1}}\n2. {{Related Question 2}}\n3. {{Related Question 3}} - role: user content: | - 我的第一个要求相关的信息如下: - 文章标题:{{ .Title }} - 文章作者:{{ .By }} - 文章正文:{{ .Content }} - 接下来请你完成我所要求的任务。 + The information related to my first request is as follows: + Article title: {{ .Title }} + Article author: {{ .By }} + Article content: {{ .Content }} + Please complete the task I requested. \ No newline at end of file From 2c445846b6590810c711c516fa1019e36d808cf6 Mon Sep 17 00:00:00 2001 From: 627 Date: Mon, 18 Mar 2024 12:15:48 +0800 Subject: [PATCH 02/12] fix typo --- locales/en.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/locales/en.yaml b/locales/en.yaml index 7170dae..6902bac 100644 --- a/locales/en.yaml +++ b/locales/en.yaml @@ -22,7 +22,7 @@ modules: telegram: chatMigration: notification: | - {{.Name}} @{{.Username}} has upgraded your group to a supergroup, resulting in a change of group ID. We have automatically migrated all historical records and data to the new group ID. All previous settings will remain in effect. However, due to Telegram's restrictions, message IDs from before the migration won't match those sent afterwards. This means messages sent before the upgrade won't be included in future summaries. We apologize for any inconvenience. + {{.Name}} @{{.Username}} has detected that your group has been upgraded to to a supergroup, resulting in a change of group ID. We have automatically migrated all historical records and data to the new group ID. All previous settings will stay the same. However, due to Telegram's restrictions, message IDs from before the migration won't match those sent afterwards. This means messages sent before the upgrade won't be included in future summaries. We apologize for any inconvenience. welcome: messageSuperGroup: | @@ -158,4 +158,4 @@ prompts: Article title: {{ .Title }} Article author: {{ .By }} Article content: {{ .Content }} - Please complete the task I requested. \ No newline at end of file + Please complete the task I requested. From c24fbb677115bdce57b3a256e6119aa5ae8fb453 Mon Sep 17 00:00:00 2001 From: 627 Date: Mon, 18 Mar 2024 12:36:07 +0800 Subject: [PATCH 03/12] fix typo --- locales/en.yaml | 93 +++++++++++++++++++++++++------------------------ 1 file changed, 48 insertions(+), 45 deletions(-) diff --git a/locales/en.yaml b/locales/en.yaml index 6902bac..acf9359 100644 --- a/locales/en.yaml +++ b/locales/en.yaml @@ -15,54 +15,54 @@ system: {{ .Commands }} cancel: - help: Cancel the current activated operation - alreadyCancelledAll: There is no activated operation to cancel + help: Cancel the current operation + alreadyCancelledAll: There is no operation to cancel modules: telegram: chatMigration: notification: | - {{.Name}} @{{.Username}} has detected that your group has been upgraded to to a supergroup, resulting in a change of group ID. We have automatically migrated all historical records and data to the new group ID. All previous settings will stay the same. However, due to Telegram's restrictions, message IDs from before the migration won't match those sent afterwards. This means messages sent before the upgrade won't be included in future summaries. We apologize for any inconvenience. + {{.Name}} @{{.Username}} has noticed your group's upgrade to a supergroup, which has resulted in a change of the group ID. Rest assured, we have seamlessly migrated all historical data to the new ID, with all your settings preserved intact. Due to Telegram's restrictions, however, message IDs from before the upgrade will not correspond with those sent afterwards, meaning they will be omitted from future summaries. We apologize for any inconvenience this adjustment may cause. welcome: messageSuperGroup: | 🤗 Welcome to @{{.Username}}! - - For web page article reading, use the command /smr@{{.Username}} article link. + - Use /smr@{{.Username}} article link for web article summaries. - - To summarize this group's chat history, set me as this group's admin (permissions can be off) under a recognizable identity (recommended to avoid permission errors), then send /configure_recap@{{.Username}} to activate the chat recap feature. + - For chat history summaries, assign me as admin (with or without permissions) using a recognizable identity to avoid errors. Then, initiate /configure_recap@{{.Username}} to set up chat recap. - - To delete all messages recorded by the bot, simply revoke my admin rights. This will trigger an automatic cleanup of the bot’s historical data (unless this feature has been altered by another bot maintainer). + - Revoking my admin rights will erase all recorded messages, cleaning historical data unless modified by another bot manager. - For questions: + Questions? - 1. Use /help@{{.Username}} to view supported commands. - 2. Visit the bot's GitHub repository to ask the developer. + 1. Type /help@{{.Username}} for commands. + 2. Check our GitHub for more info. - Enjoy your use! + Happy to assist! messageNormalGroup: | 🤗 Welcome to @{{.Username}}! - - For web page article reading, use the command /smr@{{.Username}} article link. + - Use /smr@{{.Username}} article link for reading articles. - - To summarize this group's chat history, set me as this group's admin (permissions can be off) under a recognizable identity (recommended to avoid permission errors), then send /configure_recap@{{.Username}} to activate the chat recap feature. + - To get chat summaries, make me an admin (permissions optional) under a recognizable identity for error-free setup, then trigger /configure_recap@{{.Username}}. - - To delete all messages recorded by the bot, simply revoke my admin rights. This triggers an automatic cleanup of the bot’s historical data (unless altered by another maintainer). + - Deleting all bot-recorded messages is as simple as removing my admin status, automatically purging bot data unless another maintainer has made changes. - ⚠️ Your group is not a supergroup yet, which means the message link reference feature won't work properly. + ⚠️ Your group isn't a supergroup, affecting message link functionality. - To enable message linking: + To enable linking: - - Temporarily set your group to public, then revert it to private. - - Upgrade to a supergroup through other methods. + - Briefly switch your group to public, then back to private. + - Upgrade to a supergroup by other means. - For questions: + Questions? - 1. Use /help@{{.Username}} to view commands. - 2. Visit the bot's GitHub repository for developer queries. + 1. See /help@{{.Username}} for command details. + 2. Visit our GitHub for support. - Enjoy your use! + Enjoy your experience! commands: @@ -70,20 +70,21 @@ commands: summarization: name: Quantum Speed-Reading commands: - smr: - help: Streamline your reading process with Quantum Speed-Reading. This feature allows you to quickly digest web articles and is also channel-compatible. To initiate, use the command :/smr <链接> - noLinksFound: - telegram: It appears no link was detected. Could you kindly provide a valid URL? For usage:/smr <link>. - slackOrDiscord: It appears no link was detected. Could you kindly provide a valid URL? For usage:`/smr ` - invalidLink: - telegram: We were unable to process the link you provided. Please ensure the URL is correct and try again. Usage:/smr <link>. - slackOrDiscord: We were unable to process the link you provided. Please ensure the URL is correct and try again. Usage:`/smr ` - reading: Quantum Speed-Reading is currently in action, please hold on for a moment... - rateLimitExceeded: Our apologies, but your recent action has has reached the rate limit maintain due to maintain service stability. This command may be utilized once every {{ .Seconds }} seconds. We kindly ask you to wait {{ .SecondsToBeWaited }} seconds before your next attempt. Your understanding and cooperation are greatly appreciated. - failedToRead: Unfortunately, Quantum Speed-Reading was unsuccessful. Would you like to attempt it once more? - failedToReadDueToFailedToFetch: We encountered an issue retrieving the content for Quantum Speed-Reading. Perhaps another try might yield success? - contentNotSupported: The content provided does not currently support Quantum Speed-Reading. Considering another link may be beneficial. - permissionDenied: No permission to send message, please try to reinstall this APP + smr: + help: Enhance your article reading with Quantum Speed-Reading. This tool enables fast comprehension of web content and is compatible across messaging platforms. Start with :/smr <link>. + noLinksFound: + telegram: No link detected. Please provide a valid URL to proceed. Example usage:/smr <link>. + slackOrDiscord: No link detected. Please provide a valid URL to proceed. Example usage:`/smr `. + invalidLink: + telegram: The link provided could not be processed. Please verify the URL is correct and try again. Usage:/smr <link>. + slackOrDiscord: The link provided could not be processed. Please verify the URL is correct and try again. Usage:`/smr `. + reading: Quantum Speed-Reading is now processing your request, please wait... + rateLimitExceeded: We're sorry, but you've hit the rate limit to ensure service stability. This command is available once every {{ .Seconds }} seconds. Please wait {{ .SecondsToBeWaited }} seconds before trying again. Thank you for your patience and understanding. + failedToRead: Quantum Speed-Reading did not succeed. Would you like to try again? + failedToReadDueToFailedToFetch: There was an issue fetching the content for Quantum Speed-Reading. Maybe another attempt will be successful? + contentNotSupported: This content is not compatible with Quantum Speed-Reading. It might be worth trying a different link. + permissionDenied: Unable to send message, please consider reinstalling the app. + prompts: smr: @@ -130,16 +131,18 @@ commands: name: Quantum Speed-Reading commands: smr: - help: Streamline your reading process with Quantum Speed-Reading. This feature allows you to quickly digest web articles and is also channel-compatible. To initiate, use the command: /smr <link>. - noLinksFound: It appears no link was detected. Could you kindly provide a valid URL? For usage: /smr <link>. - invalidLink: We were unable to process the link you provided. Please ensure the URL is correct and try again. Usage: /smr <link>. - reading: Quantum Speed-Reading is currently in action, please hold on for a moment... - rateLimitExceeded: Our apologies, but your recent action has has reached the rate limit maintain due to maintain service stability. This command may be utilized once every {{ .Seconds }} seconds. We kindly ask you to wait {{ .SecondsToBeWaited }} seconds before your next attempt. Your understanding and cooperation are greatly appreciated. - failedToRead: Unfortunately, Quantum Speed-Reading was unsuccessful. Would you like to attempt it once more? - failedToReadDueToFailedToFetch: We encountered an issue retrieving the content for Quantum Speed-Reading. Perhaps another try might yield success? - contentNotSupported: The content provided does not currently support Quantum Speed-Reading. Considering another link may be beneficial. - - + help: Enhance your article reading with Quantum Speed-Reading. This tool enables fast comprehension of web content and is compatible across messaging platforms. Start with :/smr <link>. + noLinksFound: + telegram: No link detected. Please provide a valid URL to proceed. Example usage:/smr <link>. + slackOrDiscord: No link detected. Please provide a valid URL to proceed. Example usage:`/smr `. + invalidLink: + telegram: The link provided could not be processed. Please verify the URL is correct and try again. Usage:/smr <link>. + slackOrDiscord: The link provided could not be processed. Please verify the URL is correct and try again. Usage:`/smr `. + reading: Quantum Speed-Reading is now processing your request, please wait... + rateLimitExceeded: We're sorry, but you've hit the rate limit to ensure service stability. This command is available once every {{ .Seconds }} seconds. Please wait {{ .SecondsToBeWaited }} seconds before trying again. Thank you for your patience and understanding. + failedToRead: Quantum Speed-Reading did not succeed. Would you like to try again? + failedToReadDueToFailedToFetch: There was an issue fetching the content for Quantum Speed-Reading. Maybe another attempt will be successful? + contentNotSupported: This content is not compatible with Quantum Speed-Reading. It might be worth trying a different link. prompts: smr: From dbe529d7f1f1dd607142178d6648f3e09708442c Mon Sep 17 00:00:00 2001 From: 627 Date: Mon, 18 Mar 2024 13:38:13 +0800 Subject: [PATCH 04/12] fix typo --- locales/en.yaml | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/locales/en.yaml b/locales/en.yaml index acf9359..143600c 100644 --- a/locales/en.yaml +++ b/locales/en.yaml @@ -22,7 +22,8 @@ modules: telegram: chatMigration: notification: | - {{.Name}} @{{.Username}} has noticed your group's upgrade to a supergroup, which has resulted in a change of the group ID. Rest assured, we have seamlessly migrated all historical data to the new ID, with all your settings preserved intact. Due to Telegram's restrictions, however, message IDs from before the upgrade will not correspond with those sent afterwards, meaning they will be omitted from future summaries. We apologize for any inconvenience this adjustment may cause. + {{.Name}} @{{.Username}} has noticed your group's upgrade to a supergroup, which has resulted in a change of the group ID. Rest assured, we have seamlessly migrated all historical data to the new ID, with all your settings preserved intact. Due to Telegram's restrictions, message IDs sent before the upgrade will not correspond with those sent afterwards, meaning they will be omitted from future summaries. We apologize for any inconvenience this adjustment may cause. + welcome: messageSuperGroup: | @@ -30,23 +31,21 @@ welcome: - Use /smr@{{.Username}} article link for web article summaries. - - For chat history summaries, assign me as admin (with or without permissions) using a recognizable identity to avoid errors. Then, initiate /configure_recap@{{.Username}} to set up chat recap. + - For chat history summaries, assign me as admin (with or without permissions) using a non-anonymous identity to avoid permission detection errors. Then, initiate /configure_recap@{{.Username}} to set up chat recap. - - Revoking my admin rights will erase all recorded messages, cleaning historical data unless modified by another bot manager. + - Revoking my admin role will trigger myself to clean up erase all recorded messages, as well as historical data and logs (only when the actual implemented haven't modified by the other operators of bot instances). Questions? 1. Type /help@{{.Username}} for commands. - 2. Check our GitHub for more info. - - Happy to assist! + 2. Raise an issue at the open sourced repository for more info from the developers. messageNormalGroup: | 🤗 Welcome to @{{.Username}}! - Use /smr@{{.Username}} article link for reading articles. - - To get chat summaries, make me an admin (permissions optional) under a recognizable identity for error-free setup, then trigger /configure_recap@{{.Username}}. + - For chat history summaries, assign me as admin (with or without permissions) using a non-anonymous identity to avoid permission detection errors. Then, initiate /configure_recap@{{.Username}} to set up chat recap. - Deleting all bot-recorded messages is as simple as removing my admin status, automatically purging bot data unless another maintainer has made changes. From df18b2d42f7ac6e802a53f43e5cdcc5d24af5186 Mon Sep 17 00:00:00 2001 From: 627 Date: Mon, 18 Mar 2024 14:28:26 +0800 Subject: [PATCH 05/12] refresh content --- locales/en.yaml | 128 +++++++++++++----------------------------------- 1 file changed, 33 insertions(+), 95 deletions(-) diff --git a/locales/en.yaml b/locales/en.yaml index 143600c..be7bb67 100644 --- a/locales/en.yaml +++ b/locales/en.yaml @@ -5,25 +5,24 @@ system: name: Basic Commands commands: start: - help: Start interacting with the bot + help: Begin interacting with the bot help: - help: Get help + help: Obtain assistance message: | - Hi! 👋 Welcome using Insights Bot! + Greetings! 👋 Welcome to using Insights Bot! I currently support these commands: {{ .Commands }} cancel: - help: Cancel the current operation - alreadyCancelledAll: There is no operation to cancel + help: Terminate the current operation + alreadyCancelledAll: No ongoing operations to terminate modules: telegram: chatMigration: notification: | - {{.Name}} @{{.Username}} has noticed your group's upgrade to a supergroup, which has resulted in a change of the group ID. Rest assured, we have seamlessly migrated all historical data to the new ID, with all your settings preserved intact. Due to Telegram's restrictions, message IDs sent before the upgrade will not correspond with those sent afterwards, meaning they will be omitted from future summaries. We apologize for any inconvenience this adjustment may cause. - + {{.Name}} @{{.Username}} has observed your group's transition to a supergroup, leading to a change in the group ID. Rest assured, we've smoothly transitioned all historical data to the new ID, maintaining all your settings unaltered. Due to Telegram's limitations, message IDs from before the upgrade won't match those sent after, and will thus be excluded from future summaries. We regret any inconvenience caused by this adjustment. welcome: messageSuperGroup: | @@ -31,133 +30,72 @@ welcome: - Use /smr@{{.Username}} article link for web article summaries. - - For chat history summaries, assign me as admin (with or without permissions) using a non-anonymous identity to avoid permission detection errors. Then, initiate /configure_recap@{{.Username}} to set up chat recap. + - For chat history summaries, appoint me as admin (with or without permissions) using a non-anonymous identity to bypass permission detection issues. Then, start /configure_recap@{{.Username}} to configure chat recap. - - Revoking my admin role will trigger myself to clean up erase all recorded messages, as well as historical data and logs (only when the actual implemented haven't modified by the other operators of bot instances). + - Revoking my admin role will prompt me to delete all recorded messages, along with historical data and logs (only if no modifications have been made by other bot operators). Questions? - 1. Type /help@{{.Username}} for commands. - 2. Raise an issue at the open sourced repository for more info from the developers. + 1. Enter /help@{{.Username}} for command information. + 2. Submit an issue at the open-source repository for further details from the developers. messageNormalGroup: | 🤗 Welcome to @{{.Username}}! - - Use /smr@{{.Username}} article link for reading articles. + - Use /smr@{{.Username}} article link for article readings. - - For chat history summaries, assign me as admin (with or without permissions) using a non-anonymous identity to avoid permission detection errors. Then, initiate /configure_recap@{{.Username}} to set up chat recap. + - For chat history summaries, appoint me as admin (with or without permissions) using a non-anonymous identity to bypass permission detection issues. Then, start /configure_recap@{{.Username}} to configure chat recap. - - Deleting all bot-recorded messages is as simple as removing my admin status, automatically purging bot data unless another maintainer has made changes. + - Removing my admin status is a simple way to delete all bot-recorded messages, automatically purging bot data unless modifications have been made by another maintainer. - ⚠️ Your group isn't a supergroup, affecting message link functionality. + ⚠️ Your group isn't a supergroup, impacting message link functionality. To enable linking: - - Briefly switch your group to public, then back to private. + - Temporarily switch your group to public, then revert to private. - Upgrade to a supergroup by other means. Questions? - 1. See /help@{{.Username}} for command details. + 1. Consult /help@{{.Username}} for command details. 2. Visit our GitHub for support. Enjoy your experience! - -commands: - groups: - summarization: - name: Quantum Speed-Reading - commands: - smr: - help: Enhance your article reading with Quantum Speed-Reading. This tool enables fast comprehension of web content and is compatible across messaging platforms. Start with :/smr <link>. - noLinksFound: - telegram: No link detected. Please provide a valid URL to proceed. Example usage:/smr <link>. - slackOrDiscord: No link detected. Please provide a valid URL to proceed. Example usage:`/smr `. - invalidLink: - telegram: The link provided could not be processed. Please verify the URL is correct and try again. Usage:/smr <link>. - slackOrDiscord: The link provided could not be processed. Please verify the URL is correct and try again. Usage:`/smr `. - reading: Quantum Speed-Reading is now processing your request, please wait... - rateLimitExceeded: We're sorry, but you've hit the rate limit to ensure service stability. This command is available once every {{ .Seconds }} seconds. Please wait {{ .SecondsToBeWaited }} seconds before trying again. Thank you for your patience and understanding. - failedToRead: Quantum Speed-Reading did not succeed. Would you like to try again? - failedToReadDueToFailedToFetch: There was an issue fetching the content for Quantum Speed-Reading. Maybe another attempt will be successful? - contentNotSupported: This content is not compatible with Quantum Speed-Reading. It might be worth trying a different link. - permissionDenied: Unable to send message, please consider reinstalling the app. - - -prompts: - smr: - - role: system - content: | - You are my web article reading assistant. I will provide you with the title, author, and the main text from the webpage I've captured, and then you will summarize the article. Please meet the following requirements when summarizing: - 1. First, if the article's title is not in Chinese, translate it into simplified Chinese in a faithful, expressive, and elegant manner and place it on the first line. - 2. Then, summarize the article in under 300 words based on the information I've provided. - 3. Lastly, using your existing knowledge and experience, propose 3 questions that are creative and involve divergent thinking based on the information I've provided about the article. - 4. Please reply in simplified Chinese. - The format of your reply should be like this example (where the double curly braces need to be replaced):\n - {{Simplified Chinese title, can be omitted}}\n\nSummary: {{Summary of the article}}\n\nRelated Questions:\n1. {{Related Question 1}}\n2. {{Related Question 2}}\n3. {{Related Question 3}} -- role: user - content: | - The information related to my first request is as follows: - Article Title: {{ .Title }} - Article Author: {{ .By }} - Article Content: {{ .Content }} - Please complete the task as requested. - -system: - commands: - groups: - basic: - name: Basic Commands - commands: - start: - help: Start interacting with the bot - help: - help: Get help - message: | - Hi! 👋 Welcome to using Insights Bot! - - I currently support these commands: - - {{ .Commands }} - cancel: - help: Cancel the current activated operation - alreadyCancelledAll: There is no activated operation to cancel - commands: groups: summarization: name: Quantum Speed-Reading commands: smr: - help: Enhance your article reading with Quantum Speed-Reading. This tool enables fast comprehension of web content and is compatible across messaging platforms. Start with :/smr <link>. + help: Enhance your article reading with Quantum Speed-Reading. This feature enables rapid understanding of web content and is compatible across messaging platforms. Initiate with :/smr <link>. noLinksFound: telegram: No link detected. Please provide a valid URL to proceed. Example usage:/smr <link>. slackOrDiscord: No link detected. Please provide a valid URL to proceed. Example usage:`/smr `. invalidLink: - telegram: The link provided could not be processed. Please verify the URL is correct and try again. Usage:/smr <link>. - slackOrDiscord: The link provided could not be processed. Please verify the URL is correct and try again. Usage:`/smr `. - reading: Quantum Speed-Reading is now processing your request, please wait... - rateLimitExceeded: We're sorry, but you've hit the rate limit to ensure service stability. This command is available once every {{ .Seconds }} seconds. Please wait {{ .SecondsToBeWaited }} seconds before trying again. Thank you for your patience and understanding. - failedToRead: Quantum Speed-Reading did not succeed. Would you like to try again? - failedToReadDueToFailedToFetch: There was an issue fetching the content for Quantum Speed-Reading. Maybe another attempt will be successful? - contentNotSupported: This content is not compatible with Quantum Speed-Reading. It might be worth trying a different link. + telegram: The link provided could not be processed. Please ensure the URL is correct and try again. Usage:/smr <link>. + slackOrDiscord: The link provided could not be processed. Please ensure the URL is correct and try again. Usage:`/smr `. + reading: Quantum Speed-Reading is currently processing your request, please wait... + rateLimitExceeded: Apologies, but you've reached the rate limit to maintain service stability. This command is accessible once every {{ .Seconds }} seconds. Kindly wait {{ .SecondsToBeWaited }} seconds before attempting again. We appreciate your patience and comprehension. + failedToRead: Quantum Speed-Reading was unsuccessful. Would you like to retry? + failedToReadDueToFailedToFetch: Encountered an issue retrieving the content for Quantum Speed-Reading. Perhaps another attempt might succeed? + contentNotSupported: This content is not supported by Quantum Speed-Reading. Considering another link might be beneficial. prompts: smr: - role: system content: | - You are my web article reading assistant. I will provide you with the article's title, author, and the main content captured from the web page, and then you will summarize the article. \nPlease meet the following requirements when summarizing: - 1. First, if the article's title is not in Chinese, please translate it into simplified Chinese elegantly according to the context and place it at the first line - 2. Then, summarize the article in no more than 300 words based on the information I provided - 3. Lastly, using your existing knowledge and experience, propose 3 creative and divergent questions regarding the information I provided - 4. Please reply in Simplified Chinese - The format of your reply should be like this example (where double curly braces need to be replaced): \n - {{Simplified Chinese title, optional}}\n\nSummary: {{Summary of the article}}\n\nRelated Questions:\n1. {{Related Question 1}}\n2. {{Related Question 2}}\n3. {{Related Question 3}} + You are my web article reading assistant. I will supply you with the article's title, author, and the main content from the web page, after which you will summarize the article. Please adhere to the following guidelines for summarizing: + 1. First, if the article's title is not in English, kindly translate it into English with elegance and accuracy according to the context, placing it at the top. + 2. Then, provide a summary of the article in no more than 300 words based on the provided information. + 3. Lastly, leveraging your existing knowledge and experience, devise 3 inventive and broad questions related to the provided information. + 4. Responses should be in English. + Follow this example format (substitute the double curly braces accordingly): + {{English title, optional}}\n\nSummary: {{Summary of the article}}\n\nRelated Questions:\n1. {{Related Question 1}}\n2. {{Related Question 2}}\n3. {{Related Question 3}} - role: user content: | - The information related to my first request is as follows: + The information for my initial request is as follows: Article title: {{ .Title }} Article author: {{ .By }} Article content: {{ .Content }} - Please complete the task I requested. + Kindly fulfill the requested task. From 7f4f5c621f1f3dcb78417cb3db44b7cf17bae3b1 Mon Sep 17 00:00:00 2001 From: Archie Liu <63381047+Lorde627@users.noreply.github.com> Date: Tue, 19 Mar 2024 06:01:46 +0800 Subject: [PATCH 06/12] Update locales/en.yaml Co-authored-by: Neko Ayaka --- locales/en.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/locales/en.yaml b/locales/en.yaml index be7bb67..f9fdabd 100644 --- a/locales/en.yaml +++ b/locales/en.yaml @@ -15,7 +15,7 @@ system: {{ .Commands }} cancel: - help: Terminate the current operation + help: Cancel any ongoing operations. alreadyCancelledAll: No ongoing operations to terminate modules: From 2707520c592d3fbddbdbd13522449de538c5c0ec Mon Sep 17 00:00:00 2001 From: Archie Liu <63381047+Lorde627@users.noreply.github.com> Date: Tue, 19 Mar 2024 06:01:53 +0800 Subject: [PATCH 07/12] Update locales/en.yaml Co-authored-by: Neko Ayaka --- locales/en.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/locales/en.yaml b/locales/en.yaml index f9fdabd..343a800 100644 --- a/locales/en.yaml +++ b/locales/en.yaml @@ -16,7 +16,7 @@ system: {{ .Commands }} cancel: help: Cancel any ongoing operations. - alreadyCancelledAll: No ongoing operations to terminate + alreadyCancelledAll: No ongoing operations to cancel modules: telegram: From 53f4360019b17f1317f077e12b6d4017159ce89a Mon Sep 17 00:00:00 2001 From: Archie Liu <63381047+Lorde627@users.noreply.github.com> Date: Tue, 19 Mar 2024 06:02:01 +0800 Subject: [PATCH 08/12] Update locales/en.yaml Co-authored-by: Neko Ayaka --- locales/en.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/locales/en.yaml b/locales/en.yaml index 343a800..eac5308 100644 --- a/locales/en.yaml +++ b/locales/en.yaml @@ -22,7 +22,7 @@ modules: telegram: chatMigration: notification: | - {{.Name}} @{{.Username}} has observed your group's transition to a supergroup, leading to a change in the group ID. Rest assured, we've smoothly transitioned all historical data to the new ID, maintaining all your settings unaltered. Due to Telegram's limitations, message IDs from before the upgrade won't match those sent after, and will thus be excluded from future summaries. We regret any inconvenience caused by this adjustment. + {{.Name}} @{{.Username}} has observed your group's upgrading to a supergroup, where the group ID will change. Rest assured, we've smoothly transitioned all historical data to the new group ID, while maintaining all your settings unaltered. However, due to Telegram's limitations, message IDs from before the upgrade won't match those sent after and will thus be excluded from future summaries. We regret any inconvenience caused by such migrations. welcome: messageSuperGroup: | From 81013d3f6ce3c648210d8b1b08f198d6122db1f3 Mon Sep 17 00:00:00 2001 From: Archie Liu <63381047+Lorde627@users.noreply.github.com> Date: Tue, 19 Mar 2024 06:02:08 +0800 Subject: [PATCH 09/12] Update locales/en.yaml Co-authored-by: Neko Ayaka --- locales/en.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/locales/en.yaml b/locales/en.yaml index eac5308..152a067 100644 --- a/locales/en.yaml +++ b/locales/en.yaml @@ -44,7 +44,7 @@ welcome: - Use /smr@{{.Username}} article link for article readings. - - For chat history summaries, appoint me as admin (with or without permissions) using a non-anonymous identity to bypass permission detection issues. Then, start /configure_recap@{{.Username}} to configure chat recap. + - For chat history summaries, please assign me as admin (all permissions can be omitted) using a non-anonymous identity (recommended, otherwise permission validation may fail. Then, start /configure_recap@{{.Username}} to configure chat recap. - Removing my admin status is a simple way to delete all bot-recorded messages, automatically purging bot data unless modifications have been made by another maintainer. From 4bf9aa331219818da411a857a3aad1b2f00caa5b Mon Sep 17 00:00:00 2001 From: Archie Liu <63381047+Lorde627@users.noreply.github.com> Date: Tue, 19 Mar 2024 06:02:14 +0800 Subject: [PATCH 10/12] Update locales/en.yaml Co-authored-by: Neko Ayaka --- locales/en.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/locales/en.yaml b/locales/en.yaml index 152a067..2ab7bb6 100644 --- a/locales/en.yaml +++ b/locales/en.yaml @@ -48,7 +48,7 @@ welcome: - Removing my admin status is a simple way to delete all bot-recorded messages, automatically purging bot data unless modifications have been made by another maintainer. - ⚠️ Your group isn't a supergroup, impacting message link functionality. + ⚠️ Your group isn't a supergroup yet; message reference linking will not work. To enable linking: From 66188e1da20b54406b9a54c3d48ceaa7f125abdf Mon Sep 17 00:00:00 2001 From: Archie Liu <63381047+Lorde627@users.noreply.github.com> Date: Tue, 19 Mar 2024 06:02:21 +0800 Subject: [PATCH 11/12] Update locales/en.yaml Co-authored-by: Neko Ayaka --- locales/en.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/locales/en.yaml b/locales/en.yaml index 2ab7bb6..0a4ec21 100644 --- a/locales/en.yaml +++ b/locales/en.yaml @@ -50,7 +50,7 @@ welcome: ⚠️ Your group isn't a supergroup yet; message reference linking will not work. - To enable linking: + To enable message reference linking: - Temporarily switch your group to public, then revert to private. - Upgrade to a supergroup by other means. From 97f72a55b1b0379487fbf18bcf0ac53995f8155e Mon Sep 17 00:00:00 2001 From: Archie Liu <63381047+Lorde627@users.noreply.github.com> Date: Tue, 19 Mar 2024 06:02:35 +0800 Subject: [PATCH 12/12] Update locales/en.yaml Co-authored-by: Neko Ayaka --- locales/en.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/locales/en.yaml b/locales/en.yaml index 0a4ec21..d973e70 100644 --- a/locales/en.yaml +++ b/locales/en.yaml @@ -30,7 +30,7 @@ welcome: - Use /smr@{{.Username}} article link for web article summaries. - - For chat history summaries, appoint me as admin (with or without permissions) using a non-anonymous identity to bypass permission detection issues. Then, start /configure_recap@{{.Username}} to configure chat recap. + - For chat history summaries, please assign me as admin (all permissions can be omitted) using a non-anonymous identity (recommended, otherwise permission validation may fail. Then, start /configure_recap@{{.Username}} to configure chat recap. - Revoking my admin role will prompt me to delete all recorded messages, along with historical data and logs (only if no modifications have been made by other bot operators).