Security News
PyPI’s New Archival Feature Closes a Major Security Gap
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
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 { GroupCaptcha } from 'telegram-captcha';
const captcha = new GroupCaptcha(TOKEN, {polling: true}, {
size: 6,
language: 'de',
time_for_enter: 3
});
captcha.bot.on("new_chat_members", (msg) => captcha.generateCaptcha(msg));
captcha.bot.on("callback_query", (query) => captcha.clickKeyboard(query));
const TOKEN = process.env.TELEGRAM_TOKEN || 'YOUR_TELEGRAM_BOT_TOKEN';
import { GroupCaptchaRTJ } from 'telegram-captcha';
const captcha = new GroupCaptchaRTJ(TOKEN, {polling: true}, {
size: 5,
language: 'es',
time_for_enter: 7
});
captcha.bot.on("chat_join_request", (cjr) => captcha.generateCaptcha(cjr));
captcha.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"
The MIT License (MIT)
Copyright © 2023 Dmitry Vyazin
FAQs
Protect telegram groups from automated bots.
The npm package telegram-captcha receives a total of 16 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
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
Research
Security News
Malicious npm package postcss-optimizer delivers BeaverTail malware, targeting developer systems; similarities to past campaigns suggest a North Korean connection.
Security News
CISA's KEV data is now on GitHub, offering easier access, API integration, commit history tracking, and automated updates for security teams and researchers.