2.7.9 • Published 2 years ago

degreet-telegram v2.7.9

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Getting started

import { DegreetTelegram } from 'degreet-telegram'
import { IContext } from 'degreet-telegram/src/types'

const token: string = 'Enter your token here'
const bot: DegreetTelegram = new DegreetTelegram(token)

bot.command('start', async (ctx: IContext): Promise<any> => {
  try {
    await ctx.answer.send('Hello!')
  } catch (e: any) {
    console.error(e)
  }
})

bot.start().then((username: string): void => {
  console.log(`Started on @${username}`)
})

Full example is here: https://github.com/Degreet/link-cloud-bot Full documentation is here: https://degreetpro.gitbook.io/degreet-telegram

2.3.0

2 years ago

2.2.0

2 years ago

2.5.0

2 years ago

2.3.2

2 years ago

2.4.0

2 years ago

2.3.1

2 years ago

2.7.0

2 years ago

2.6.1

2 years ago

2.6.0

2 years ago

2.7.2

2 years ago

2.6.3

2 years ago

2.7.1

2 years ago

2.6.2

2 years ago

2.0.0

2 years ago

2.7.4

2 years ago

2.6.5

2 years ago

2.7.3

2 years ago

2.6.4

2 years ago

2.7.6

2 years ago

2.6.7

2 years ago

2.7.5

2 years ago

2.6.6

2 years ago

2.7.8

2 years ago

2.6.9

2 years ago

2.7.7

2 years ago

2.6.8

2 years ago

2.7.9

2 years ago

1.0.0

2 years ago