Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
TypeScript/JavaScript Telegram Bot API Framework for create your bots with convenience!
✨ Extensible - Our plugin and hook system is awesome
🛡️ Type-safe - Written in TypeScript with love ❤️
🌐 Multi-runtime - Works on Node.js, Bun and Deno
⚙️ Code-generated - Many parts are code-generated (for example, code-generated and auto-published Telegram Bot API types)
To create your new bot, you just need to write it to the console:
npm create gramio@latest ./bot
and GramIO customize your project the way you want it!
import { Bot } from "gramio";
const bot = new Bot(process.env.TOKEN as string)
.command("start", (context) => context.send("Hello!"))
.onStart(({ info }) => console.log(`✨ Bot ${info.username} was started!`));
bot.start();
For more, please see documentation.
Example which uses some interesting features.
import { Bot, format, bold, code } from "gramio";
import { findOrRegisterUser } from "./utils";
const bot = new Bot(process.env.BOT_TOKEN as string)
.derive("message", async () => {
const user = await findOrRegisterUser();
return {
user,
};
})
.on("message", (context) => {
context.user; // typed
return context.send(format`
Hi, ${bold(context.user.name)}!
You balance: ${code(context.user.balance)}`);
});
FAQs
Powerful, extensible and really type-safe Telegram Bot API framework
The npm package gramio receives a total of 193 weekly downloads. As such, gramio popularity was classified as not popular.
We found that gramio 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
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.