telegram-channel-data v3.0.9
#What Is This Work? Grab Data From Telegram Channel.
#How To Use It? First Install Via Run Below Command In Terminal
npm install telegram-channel-data
Obtaining your API ID and Hash Follow this link and login with your phone number. 1 ) Click under API Development tools. 2 ) A Create new application window will appear. Fill in your application details. There is no need to enter any URL, and only the first two fields (App title and Short name) can be changed later as long as I'm aware. 3 ) Click on Create application at the end. Now that you have the API ID and Hash
const channelData = require("telegram-channel-data")
var channel = use channelusername
ChannelData.ChannelData(channel,apiId,apiHash,string) .then(data => { console.log(data) // { 'totalPost' : 6, 'totalViews' : 124K, 'averageViews' : 34K } })
#Using await
var result = await ChannelData.ChannelData(channelid,apiId,apiHash,string)
if(result.message){ return reply(result.message) // Invalid Channel }
return reply(result) // { 'totalPost' : 6, 'totalViews' : 124K, 'averageViews' : 34K }
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago