Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

telescript

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

telescript

A JavaScript library for interacting with Telegram Bot API

  • 0.1.0
  • unpublished
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

TeleScript Logo

TeleScript

License Telegram Bot API version

⚠️ Warning

This library is under development! It doesn't yet cover Telegram Bot API 100% and may contain bugs. Library API may change at any time. Use it in production at your own risk.

About

TeleScript is a developer-friendly wrapper for Telegram Bot API

Features

  • Full Telegram Bot API coverage
  • Lightweight
  • Object-oriented, has predictable abstractions and Typescript type defentitions included

Example

import { Client } from 'telescript'

const client = new Client({
    // Create bot and get token via @botfather
    token: '0123456789:PUtY0uR0WNT37egR4m8oTtOk3NHer3-sDzP'
})

client.on('message', async (message) => {
    if (message.text.startsWith('/start')) {
        await message.chat.sendMessage('Hello World! I\'m a brand new TeleScript bot')
        await message.chat.sendMessage('✌️')
    }
})

client.polling.start()

FAQs

Package last updated on 04 Nov 2023

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