New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

telegram-bot-activitystreams

Package Overview
Dependencies
Maintainers
0
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

telegram-bot-activitystreams

Telegram Bot Messages ActivityStreams 2.0

  • 1.0.7
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
19
decreased by-65.45%
Maintainers
0
Weekly downloads
 
Created
Source

ActivityStreams 2.0 Telegram Bot Messages

Serialization telegram message into ActivityStreams.

  • Terms
  • Specification
  • Vocabulary
ActivityAvailable
summary
instrument
actor
origin
target
origin
startTime
endTime
ObjectsAvailable
Person
Profile
Note
Audio
Video
Document
Event
Place

Example

node-telegram-bot-api

npm i telegram-bot-activitystreams
const activitystreams = require('telegram-bot-activitystreams');
const TelegramBot = require('node-telegram-bot-api');

const token = 'YOUR_TELEGRAM_BOT_TOKEN';
const bot = new TelegramBot(token, {polling: true});

bot.on('message', (msg) => {
  const activity = activitystreams(msg);
  bot.sendMessage(msg.chat.id, 'Hello ' + activity.actor.name);
});

Works better with telegram-bot-api-express.

Keywords

FAQs

Package last updated on 24 Oct 2024

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc