
Research
Two Malicious Rust Crates Impersonate Popular Logger to Steal Wallet Keys
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
vow-telegram-bot
Advanced tools
npm install vow-telegram-bot
var VowTelegramBot = require('vow-telegram-bot'),
bot = new VowTelegramBot({
token: 'TELEGRAM_BOT_TOKEN',
polling: {
timeout: 3,
limit: 100
}
});
bot.on('message', function(message) {
var from = message.from;
console.log(from.first_name + ' ' + from.last_name + ': ' + message.text);
bot.sendMessage({
chat_id: message.chat.id,
text: 'Test message from bot'
}).then(function(message) {
console.log('Message sent', message);
});
});
var VowTelegramBot = require('vow-telegram-bot'),
bot = new VowTelegramBot({
token: 'TELEGRAM_BOT_TOKEN',
polling: {
timeout: 3,
limit: 100
}
});
bot.on('message', function(message) {
bot.sendChatAction({
chat_id: message.chat.id,
action: 'upload_photo'
});
setTimeout(function() {
bot.sendPhoto({
chat_id: message.chat.id,
photo: 'example.png',
caption: 'Photo from bot'
}).then(function(message) {
console.log('Photo sent', message);
});
}, 5000);
});
See https://core.telegram.org/bots/api
Use this method to receive incoming updates using long polling. An Array of Update objects is returned.
See https://core.telegram.org/bots/api#getupdates
A simple method for testing your bot's auth token. Requires no parameters.
See https://core.telegram.org/bots/api#getme
Use this method to send text messages.
See https://core.telegram.org/bots/api#sendmessage
Use this method to forward messages of any kind.
See https://core.telegram.org/bots/api#forwardmessage
Use this method to send photos.
See https://core.telegram.org/bots/api#sendphoto
Use this method to send audio files, if you want Telegram clients to display the file as a playable voice message. For this to work, your audio must be in an .ogg file encoded with OPUS (other formats may be sent as Document). Bots can currently send audio files of up to 50 MB in size, this limit may be changed in the future.
See https://core.telegram.org/bots/api#sendaudio
Use this method to send general files. Bots can currently send files of any type of up to 50 MB in size, this limit may be changed in the future.
See https://core.telegram.org/bots/api#senddocument
Use this method to send .webp stickers.
See https://core.telegram.org/bots/api#sendsticker
Use this method to send video files, Telegram clients support mp4 videos (other formats may be sent as Document). Bots can currently send video files of up to 50 MB in size, this limit may be changed in the future.
See https://core.telegram.org/bots/api#sendvideo
Use this method to send point on the map.
See https://core.telegram.org/bots/api#sendlocation
Use this method when you need to tell the user that something is happening on the bot's side. The status is set for 5 seconds or less (when a message arrives from your bot, Telegram clients clear its typing status).
See https://core.telegram.org/bots/api#sendchataction
Use this method to get a list of profile pictures for a user.
FAQs
Telegram Bot API
We found that vow-telegram-bot 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
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.