Skip to content
This repository has been archived by the owner on Jul 9, 2019. It is now read-only.

Latest commit

 

History

History
31 lines (19 loc) · 496 Bytes

README.md

File metadata and controls

31 lines (19 loc) · 496 Bytes

tmembers

Simple script to get the number of channel subscribers in the Telegram

Installation

yarn add tmembers

Or if you prefer npm:

npm i tmembers

Usage

TL;DR

import tmembers from 'tmembers'
 
tmembers('code_for', 1000).then(count => console.log(count));

Docs

tmembers accepts two parameters — channel and fallback. If fetching will fail, it returns fallback value. Function returns Promise{number}.

That's all. Enjoy!