
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
telegram-free
Advanced tools
This library has been developed for specific needs. It combines communication with Telegram and the free mobile API.
npm install --save telegram-free
config.json
)let communicationApi = new TelegramFreeMobile("/home/user/config.json");
let config = {
free_mobile: [
{
user: 123,
password: "xxxxx"
}
],
telegram: {
group_id: 123456,
bot_token: "xxxxxxxxxx"
}
};
let communicationApi = new TelegramFreeMobile(config);
Send a message
let free = communicationApi.freeMobile;
free.sendMessage("Hello World!")
.then(()=> {
console.log("Sent to all specified users!");
})
.catch((err: Error | null) => {
console.log("Error...", err);
});
Send a message
let telegram = communicationApi.telegram;
telegram.sendMessage("Hello World!")
.then((message) => {
console.log("Message sent!");
});
Send a message with a picture
let telegram = communicationApi.telegram;
telegram.sendMessageWithPicture("Hello World!", "/home/user/image.png")
.then((message) => {
console.log("Photo sent!");
});
Launch Telegram Bot and set OnMessageListener
let telegram = communicationApi.telegram;
telegram.launchTelegramServer()
.setOnMessageListener((message) => {
console.log("Message received:", message);
});
TelegramFreeMobile([config])
ConfigurationInterface
or string) The configuration variables. If config
is a string, then it should be the absolute path of the json configuration file (example in config.json
). If config
is an object, it should implements ConfigurationInterface
. Default: config.json
of this current directory.telegram(): Telegram
Returns an instance of Telegram
.
freeMobile(): FreeMobile
Returns an instance of FreeMobile
.
configuration(): Configuration
Returns an instance of Configuration
.
sendMessage(content): Promise<TelegramBot.Message>
sendMessageWithPicture(content, picture): Promise<TelegramBot.Message>
sendMessageWithVideo(content, video): Promise<TelegramBotDefinition.Message>
launchTelegramServer(): Telegram
Launches the telegram bot server. Required to use listeners.
setOnMessageListener(onMessageReceived): void
bot: TelegramBot
Returns an instance of TelegramBot
from node-telegram-bot-api library.
sendMessage(content): Promise<void[]>
FreeMobile
class will send messages to all specified users.FAQs
Sends message by Telegram API and SMS by the free-mobile API
The npm package telegram-free receives a total of 8 weekly downloads. As such, telegram-free popularity was classified as not popular.
We found that telegram-free 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
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.