import { Telegram } from "npm:telegraf@4.11";
/**
* @param photo The path or URL to the image.
*/
type Telegram = {
token: string;
};
export async function main(
auth: Telegram,
chat_id: string | number,
photo: string,
reply_to_message_id?: number,
) {
const client = new Telegram(auth.token);
return await client.sendPhoto(chat_id, photo, {
reply_to_message_id,
});
}
Submitted by admin 511 days ago
import { Telegram } from "npm:telegraf@4.11"
/**
* @param photo The path or URL to the image.
*/
type Telegram = {
token: string;
};
export async function main(
auth: Telegram,
chat_id: string | number,
photo: string,
reply_to_message_id?: number
) {
const client = new Telegram(auth.token)
return await client.sendPhoto(
chat_id,
photo,
{
reply_to_message_id
}
)
}
Submitted by admin 514 days ago
import * as wmill from "https://deno.land/x/windmill@v1.85.0/mod.ts"
import { Telegram } from "npm:telegraf@4.11"
/**
* @param photo The path or URL to the image.
*/
export async function main(
auth: wmill.Resource<"telegram">,
chat_id: string | number,
photo: string,
reply_to_message_id?: number
) {
const client = new Telegram(auth.token)
return await client.sendPhoto(
chat_id,
photo,
{
reply_to_message_id
}
)
}
Submitted by adam186 642 days ago
import * as wmill from "https://deno.land/x/windmill@v1.70.1/mod.ts"
import { Telegram } from "npm:telegraf@4.11"
/**
* @param photo The path or URL to the image.
*/
export async function main(
auth: wmill.Resource<"telegram">,
chat_id: string | number,
photo: string,
reply_to_message_id?: number
) {
const client = new Telegram(auth.token)
return await client.sendPhoto(
chat_id,
photo,
{
reply_to_message_id
}
)
}
Submitted by adam186 677 days ago
import * as wmill from "https://deno.land/x/windmill@v1.53.0/mod.ts"
import { Telegram } from "npm:telegraf@4.11"
/**
* @param photo The path or URL to the image.
*/
export async function main(
auth: wmill.Resource<"telegram">,
chat_id: string | number,
photo: string,
reply_to_message_id?: number
) {
const client = new Telegram(auth.token)
return await client.sendPhoto(
chat_id,
photo,
{
reply_to_message_id
}
)
}
Submitted by adam186 759 days ago
import * as wmill from "https://deno.land/x/windmill@v1.53.0/mod.ts"
import { Telegram } from "npm:telegraf@4.11"
export async function main(
auth: wmill.Resource<"telegram">,
chat_id: string | number,
photo: string,
reply_to_message_id?: number
) {
const client = new Telegram(auth.token)
return await client.sendPhoto(
chat_id,
photo,
{
reply_to_message_id
}
)
}
Submitted by adam186 759 days ago