Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
![Gitter](https://badges.gitter.im/Join Chat.svg)
Ruby client for the Telegram's Bot API. Compliant with the version 2016-01-20 of the API.
Add this line to your application's Gemfile:
gem 'telegrammer'
And then execute:
$ bundle
First you'll need to register your bot and get an API token. To do that you have to talk with the @BotFather. Learn more about this here.
After getting your token, you can do things like this:
require 'telegrammer'
bot = Telegrammer::Bot.new('[YOUR TELEGRAM TOKEN]')
bot.get_updates do |message|
puts "In chat #{message.chat.id}, @#{message.from.username} said: #{message.text}"
bot.send_message(chat_id: message.chat.id, text: "You said: #{message.text}")
# Here you can also process message text to detect user commands
# To learn more about commands, see https://core.telegram.org/bots#commands
end
This gem currently supports all operations exposed by the Telegram's Bot API. All the classes and methods are documented with examples, so please check the documentation. Also you can check the the wiki, where you'll find more info about topics like setting webhooks for your bot.
git checkout -b my-new-feature
)git commit -am 'Add some feature'
)git push origin my-new-feature
)FAQs
Unknown package
We found that telegrammer 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
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.