import { Telegram } from "npm:[email protected]";
type Telegram = {
token: string;
};
export async function main(
auth: Telegram,
chat_id: string,
message_id: number,
) {
const client = new Telegram(auth.token);
return await client.pinChatMessage(chat_id, message_id);
}
Submitted by hugo697 229 days ago
import { Telegram } from "npm:[email protected]";
type Telegram = {
token: string;
};
export async function main(
auth: Telegram,
chat_id: string,
message_id: number,
) {
const client = new Telegram(auth.token);
return await client.pinChatMessage(chat_id, message_id);
}
Submitted by admin 861 days ago
import { Telegram } from "npm:[email protected]"
type Telegram = {
token: string;
};
export async function main(
auth: Telegram,
chat_id: string,
message_id: number
) {
const client = new Telegram(auth.token)
return await client.pinChatMessage(
chat_id,
message_id
)
}
Submitted by admin 865 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,
message_id: number
) {
const client = new Telegram(auth.token)
return await client.pinChatMessage(
chat_id,
message_id
)
}
Submitted by adam186 993 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,
message_id: number
) {
const client = new Telegram(auth.token)
return await client.pinChatMessage(
chat_id,
message_id
)
}
Submitted by adam186 1028 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,
message_id: number
) {
const client = new Telegram(auth.token)
return await client.pinChatMessage(
chat_id,
message_id
)
}
Submitted by adam186 1109 days ago