【问题标题】:Making a message reminder like Slack's with Google Chat API and Google Apps Scripts使用 Google Chat API 和 Google Apps Script 制作类似 Slack 的消息提醒
【发布时间】:2021-01-03 15:46:02
【问题描述】:

我正在制作一个与 Google Chat API 交互的 Google Apps 脚本,我发现我可以使用 Google 脚本在 Google 表格中进行 ui 更改。有没有办法在 Google Chat 中创建与 Slack 的消息提醒相同的 ui 交互?这是链接:https://slack.com/help/articles/208423427-Set-a-reminder

【问题讨论】:

    标签: google-apps-script hangouts-chat google-chat


    【解决方案1】:

    解决方案

    您可以使用Google Chat API 创建一个chatbot,它使用spaces.messages 类的create() 方法创建Event 类型的消息。这样您就可以在聊天室或您可以在特定时间设置群组房间事件提醒,用户可以通过机器人将它们作为聊天消息接收。

    我希望这对您有所帮助。让我知道您是否需要其他任何内容,或者您​​是否不理解某些内容。 :)

    【讨论】:

    • 非常感谢您的回答,对我帮助很大。但是现在我面临一个新问题,我为每隔一定时间发送提醒消息而制作的触发器在部署时不起作用,它仅在从文本编辑器执行触发器时才起作用。您是否曾经在使用 ClockTriggerBuilder 时遇到过这个问题。
    猜你喜欢
    • 1970-01-01
    • 2023-03-26
    • 2017-01-28
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-09-13
    • 2015-02-22
    • 1970-01-01
    相关资源
    最近更新 更多