Simple script to get the number of channel subscribers in the Telegram
yarn add tmembers
Or if you prefer npm
:
npm i tmembers
import tmembers from 'tmembers'
tmembers('code_for', 1000).then(count => console.log(count));
tmembers
accepts two parameters — channel
and fallback
. If fetching will fail, it returns fallback value. Function returns Promise{number}.
That's all. Enjoy!