Edits history of script submission #22575 for ' Get the Number of Members in a Chat (telegram)'

  • bun
    One script reply has been approved by the moderators
    Ap­pro­ved
    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.getChatMembersCount(chat_id);
    }
    

    Submitted by hugo989 6 days ago