
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
telegram-captcha
Advanced tools
After joining/request to join a telegram group, the user is sent a captcha message, which must be completed within 5 minutes. Otherwise, the user will be banned from the group for a day.
Supported languages:
Supported Telegram bot libraries:
npm i telegram-captcha
const TOKEN = process.env.TELEGRAM_TOKEN || 'YOUR_TELEGRAM_BOT_TOKEN';
import TelegramBot from 'node-telegram-bot-api';
import { GroupCaptcha } from 'telegram-captcha';
process.env["NTBA_FIX_350"] = 1;
process.env["NTBA_FIX_319"] = 1
const bot = new TelegramBot(TOKEN, {polling: true});
const captcha = new GroupCaptcha(bot, {
size: 6,
language: 'de',
time_for_enter: 3
});
bot.on("new_chat_members", (msg) => captcha.generateCaptcha(msg));
bot.on("callback_query", (query) => captcha.clickKeyboard(query));
const TOKEN = process.env.TELEGRAM_TOKEN || 'YOUR_TELEGRAM_BOT_TOKEN';
import TelegramBot from 'node-telegram-bot-api';
import { GroupCaptchaRTJ } from 'telegram-captcha';
process.env["NTBA_FIX_350"] = 1;
process.env["NTBA_FIX_319"] = 1
const bot = new TelegramBot(TOKEN, {polling: true});
const captcha = new GroupCaptchaRTJ(bot, {
size: 5,
language: 'es',
time_for_enter: 7
});
bot.on("chat_join_request", (cjr) => captcha.generateCaptcha(cjr));
bot.on("callback_query", (query) => captcha.clickKeyboard(query));
{
size: 4, //Captcha length < 9 (number of characters)
language: 'en', //Language (en/es/de/es/fr/it)
time_for_enter: 5 //Time for enter captcha (in minutes)
}
"size"
"ban time"
"time for enter captcha"
Telegraf/grammY/telebot
The MIT License (MIT)
Copyright © 2023 Dmitry Vyazin
0.2.0 - 2023-04-08
"time for enter captcha"
. The option sets the required time to enter the captcha. The parameter is specified in minutes. The default value is 5
.FAQs
Protect telegram groups from automated bots.
The npm package telegram-captcha receives a total of 8 weekly downloads. As such, telegram-captcha popularity was classified as not popular.
We found that telegram-captcha 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.
Security News
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.