KatBot MTProto-Nodejs runs on the telegram-mtproto library with mtproto-storage-fs
- Connects with Telegram's MTProto server and saves the client session
- getUsers.js
- Runs channels.getParticipants
- Returns ChannelParticipants vector<user>
npm install --save telegram-mtproto@2.2.8
npm install --save mtproto-storage-fs
-
The api_id and api_hash values can be obtained here:
-
The channel_id and access_hash values can be obtained here:
A vector of users
- Get full list of users in the channel
- Find most inactive users so we can kick them
- Remove bots
- Return a complete user vector of a channel
- Parse the result