0

Export Chat Invite Link

by
Published Jun 6, 2022
Script telegram Verified

The script

Submitted by hugo989 Bun
Verified 6 days ago
1
import { Telegram as Telegraf } from "[email protected]";
2

3
type Telegram = {
4
  token: string;
5
};
6
export async function main(auth: Telegram, chat_id: string) {
7
  const client = new Telegraf(auth.token);
8
  return await client.exportChatInviteLink(chat_id);
9
}
10

Other submissions
  • Submitted by adam186 Deno
    Created 398 days ago
    1
    import { Telegram } from "npm:[email protected]";
    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