@ts-module-for-gas/gas-workplace

0.3.1 • Public • Published

GAS-Workplace

Workplace module for GAS that written by TypeScript

Usage

import {Workplace, Post } from '@ts-module-for-gas/gas-workplace';

const workplacebot = new Workplace.Bot(PropertiesService.getScriptProperties().getProperty('WORKPLACE_BOT_TOKEN') as string);
const group_id = PropertiesService.getScriptProperties().getProperty('WORKPLACE_GROUP_ID') as string;
const thread_key = PropertiesService.getScriptProperties().getProperty('WORKPLACE_THREAD_KEY') as string;

function test_Bot_post() {
    const post = workplacebot.post(group_id, "This is submitted by bot!",'https://google.com/');
    const res = workplacebot.chat(thread_key, "You've got a message!")
};

Readme

Keywords

none

Package Sidebar

Install

npm i @ts-module-for-gas/gas-workplace

Weekly Downloads

0

Version

0.3.1

License

ISC

Unpacked Size

13.2 kB

Total Files

6

Last publish

Collaborators

  • awa2