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