2.7.9 • Published 3 years ago
degreet-telegram v2.7.9
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
3 years ago
2.2.0
3 years ago
2.5.0
3 years ago
2.3.2
3 years ago
2.4.0
3 years ago
2.3.1
3 years ago
2.7.0
3 years ago
2.6.1
3 years ago
2.6.0
3 years ago
2.7.2
3 years ago
2.6.3
3 years ago
2.7.1
3 years ago
2.6.2
3 years ago
2.0.0
3 years ago
2.7.4
3 years ago
2.6.5
3 years ago
2.7.3
3 years ago
2.6.4
3 years ago
2.7.6
3 years ago
2.6.7
3 years ago
2.7.5
3 years ago
2.6.6
3 years ago
2.7.8
3 years ago
2.6.9
3 years ago
2.7.7
3 years ago
2.6.8
3 years ago
2.7.9
3 years ago
1.0.0
3 years ago