【文件属性】:
文件名称:nestjs-telegram:一个使用Telegram Bot API的NestJS Telegram模块
文件大小:126KB
文件格式:ZIP
更新时间:2021-02-05 09:03:55
bot telegram telegram-api nest telegram-bot-api
适用于机器人的服务包装器!
描述
Bots API的 API包装器可与框架配合使用。
安装
$ npm install nestjs-telegram
使用模块
// Inside of your module imports
@ Module ( {
imports : [ TelegramModule . forRoot ( {
botKey : 'YourBotApiToken'
} ) ]
} )
// Or async
@ Module ( {
imports : [
TelegramModule . forRootAsync ( {
use