15 lines
385 B
TypeScript
15 lines
385 B
TypeScript
import { LarkService } from "../../services"
|
|
|
|
const service = new LarkService("egg", "")
|
|
|
|
const currentTime = Math.floor(new Date().getTime() / 1000)
|
|
const yesterdayTime = currentTime - 24 * 60 * 60
|
|
|
|
const res = await service.message.getHistory(
|
|
"oc_c83f627bde3da39b01bbbfb026a00111",
|
|
yesterdayTime.toString(),
|
|
currentTime.toString()
|
|
)
|
|
|
|
console.log(JSON.stringify(res, null, 2))
|