Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
telegram-api-js
Advanced tools
Based on webogram
npm install telegram-api-js
Or bower
bower install telegram-api-js
<script>
to your index.html<html>
<head>
<title>My amazing app</title>
</head>
<body>
<script src="js/jquery.js"></script>
<script src="node_modules/telegram-api-js/dist/telegramApi.js"></script>
<body>
</html>
/* You should register your application on https://my.telegram.org/ */
telegramApi.setConfig({
app: {
id: 0, /* App ID */
hash: 'qwertyasdfghzxcvbnqwertyasd', /* App hash */
version: '0.0.0' /* App version */
},
server: {
test: [
{
id: 2, /* DC ID */
host: '0.0.0.0',
port: 443
}
],
production: [
{
id: 2, /* DC ID */
host: '0.0.0.0',
port: 123
}
]
}
});
telegramApi.getUserInfo().then(function(user) {
if (user.id) {
// You have already signed in
} else {
// Log in
}
});
FAQs
JavaScript library for using Telegram API.
The npm package telegram-api-js receives a total of 2 weekly downloads. As such, telegram-api-js popularity was classified as not popular.
We found that telegram-api-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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.