tgx-core
TypeScript icon, indicating that this package has built-in type declarations

0.2.2 • Public • Published

TGX-CORE

Latest

Alpha

About

tgx-core is a modern, powerful library for building your Telegram bots, with seamless support for both JavaScript and Typescript.

  • Object-oriented
  • Modular
  • Flexible
  • 99% Coverage of the Telegram API

Installation

npm install tgx-core

Getting Started

With tgx-core you can code at ease, as easy as this!

import { Client, PartialTypes } from 'tgx-core'

const client = new Client({
    partials: [PartialTypes.Chat, PartialTypes.Member]
})

client.once('ready', () => {
    console.log('Your imagination is the limit!')
})

client.on('text', (message) => {
    message.replyText('Hello there!')
})

client.intialize(<bot-token>)

Links

Development Support

For development support you may join our official Telegram support server @TGX-CORE DEVs.

Package Sidebar

Install

npm i tgx-core

Weekly Downloads

3

Version

0.2.2

License

ISC

Unpacked Size

1.26 MB

Total Files

1052

Last publish

Collaborators

  • v-engine