1
import { Telegram } from "npm:telegraf@4.11";
2
3
type Telegram = {
4
token: string;
5
};
6
export async function main(auth: Telegram, chat_id: string) {
7
const client = new Telegram(auth.token);
8
return await client.exportChatInviteLink(chat_id);
9
}
10