Get the Number of Members in a Chat ( telegram)
One script reply has been approved by the moderators Verified

Created by elisafossieri 296 days ago Viewed 67 times 0 Points

No comments yet

Login to be able to comment
Points: 0
deno
One script reply has been approved by the moderators
Ap­pro­ved
import * as wmill from "https://deno.land/x/windmill@v1.70.1/mod.ts"
import { Telegram } from "npm:telegraf@4.11"

export async function main(
  auth: wmill.Resource<"telegram">,
  chat_id: string
) {
  const client = new Telegram(auth.token)
  return await client.getChatMembersCount(chat_id)
}

Submitted by adam186 111 days ago

Edited 29 days ago

No comments yet

Login to be able to comment