Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
@yuva1422/telegram.js
Advanced tools
A powerful Node.js module that allows you to easily interact with the Telegram Bot API
telegram.js is a powerful module that allows you to easily interact with the Telegram Bot API
npm install telegram.js
const Telegram = require('telegram.js');
const client = new Telegram.Client();
client.on('ready', () => {
console.log(`Logged in as ${client.user.username}`);
});
client.on('message', (msg) => {
if (msg.content === 'hii') {
msg.reply('hello');
};
});
client.commands.on('ping', (bot, msg, args) => {
msg.chat.send('pong!');
});
client.login('token');
client.startPolling();
// OR
client.setWebhook('https://<PUBLIC_URL>/secretpath');
client.setupwebhook('/secretpath');
Before creating an issue, please ensure that it hasn't already been reported/suggested, and double-check the
documentation.
See the contribution guide if you'd like to submit a PR.
If you don't understand something in the documentation, you are experiencing problems, or you just need a gentle nudge in the right direction, please don't hesitate to join our official Telegram.js Server
FAQs
A powerful Node.js module that allows you to easily interact with the Telegram Bot API
The npm package @yuva1422/telegram.js receives a total of 3 weekly downloads. As such, @yuva1422/telegram.js popularity was classified as not popular.
We found that @yuva1422/telegram.js demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.