import { Telegram } from "npm:[email protected]";
/**
* @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 hugo697 233 days ago
import { Telegram } from "npm:[email protected]";
/**
* @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 865 days ago
import { Telegram } from "npm:[email protected]"
/**
* @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 869 days ago
import * as wmill from "https://deno.land/x/[email protected]/mod.ts"
import { Telegram } from "npm:[email protected]"
/**
* @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 997 days ago
import * as wmill from "https://deno.land/x/[email protected]/mod.ts"
import { Telegram } from "npm:[email protected]"
/**
* @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 1032 days ago
import * as wmill from "https://deno.land/x/[email protected]/mod.ts"
import { Telegram } from "npm:[email protected]"
/**
* @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 1114 days ago
import * as wmill from "https://deno.land/x/[email protected]/mod.ts"
import { Telegram } from "npm:[email protected]"
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 1114 days ago