Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

weavebot-telegram

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

weavebot-telegram

Generic Telegram bot framework with command registration

latest
Source
npmnpm
Version
0.1.1
Version published
Maintainers
1
Created
Source

@weavebot/telegram

Telegram bot framework for @weavebot/core.

Installation

npm install @weavebot/telegram @weavebot/core telegraf

Usage

import { TelegramBot } from '@weavebot/telegram';
import ContentProcessor from '@weavebot/core';

const processor = new ContentProcessor();

const bot = new TelegramBot({
  botToken: process.env.TELEGRAM_BOT_TOKEN,
  processor: processor,
  authorizedAdmins: ['123456789']
});

// Register custom commands
bot.registerCommand('mycommand', {
  command: 'mycommand',
  description: 'My custom command',
  async execute(context) {
    return {
      success: true,
      message: 'Command executed!'
    };
  }
});

// Start the bot
bot.start();

Features

  • Generic command registration system
  • Integration with @weavebot/core processor
  • Admin authorization support
  • Built on Telegraf framework

License

MIT

Keywords

telegram

FAQs

Package last updated on 02 Jul 2025

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