import { Telegram as Telegraf } from "[email protected]";
type Telegram = {
token: string;
};
export async function main(auth: Telegram, chat_id: string) {
const client = new Telegraf(auth.token);
return await client.createChatInviteLink(chat_id);
}
Submitted by hugo989 7 days ago