import { Telegram as Telegraf } from "telegraf@4.11";
type Telegram = {
token: string;
};
export async function main(auth: Telegram, chat_id: string) {
const client = new Telegraf(auth.token);
return await client.exportChatInviteLink(chat_id);
}
Submitted by hugo989 69 days ago