UNPKG

telegram-cms

Version:

It is a nodejs application to launch a Telegram bot in seconds with primary components.

21 lines (17 loc) 523 B
var mongoose = require('mongoose'); var Schema = mongoose.Schema; let strStickerSchema = new Schema({ name : String, fileid : String, type : String, }); let rowSchema = new Schema({ rowNumber: Number, totalColumns: Number, }); let rowColumnsSchema = new Schema({ category : String, rows : [rowSchema] }); module.exports.strStickers = mongoose.model('strreplacers', strStickerSchema); module.exports.rowColumns = mongoose.model('rowColumns', rowColumnsSchema);