Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
telegram-mini-app
Advanced tools
This repository offers an npm package for developing web applications for your Telegram bot. It re-exports the API provided by Telegram's JS module.
The benefit of this package is that it includes TypeScript types, simplifying project setup.
npm install telegram-mini-app
you don't need to install the Telegram JS module separately, as it is included in this package.
import WebApp from 'telegram-mini-app';
// to display the initData
console.log(WebApp.initData);
// to show the main button
WebApp.MainButton.show();
// to set the app background color
WebApp.setBackgroundColor('#f60000')
// to set the app header color
WebApp.setHeaderColor('bg_color');
Refer to the official Telegram documentation for Web Apps to explore additional features available through WebApp.
FAQs
Telegram Web App - (Uses July 7, 2024, Bot API 7.7)
The npm package telegram-mini-app receives a total of 2 weekly downloads. As such, telegram-mini-app popularity was classified as not popular.
We found that telegram-mini-app demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.