Created by paulpragpaymn 296 days ago Viewed 154 times 0 Points
No comments yet
import * as wmill from "https://deno.land/x/windmill@v1.70.1/mod.ts"
import { Telegram } from "npm:telegraf@4.11"
export async function main(
auth: wmill.Resource<"telegram">,
chat_id: string | number,
text: string,
reply_to_message_id?: number
) {
const client = new Telegram(auth.token)
return await client.sendMessage(
chat_id,
text,
{
reply_to_message_id
}
)
}
No comments yet