Open kvokov opened 7 years ago
Hey, i dont think there is a reason to make it serializable because its just a placeholder
Just because I wanna do the things like
let keyboard = new InlineKeyboardMarkup([[
new InlineKeyboardButton('Play Game', null, null, null, null, new CallbackGame())
]]);
scope.api.sendGame(scope.chatId, config.gameShortName, {
reply_markup: JSON.stringify(keyboard.toJSON())
})
I'm pretty sure that all models should have such methods, so will be cool to extend some BaseModel
or add mixins
Also please add export of
CallbackGame
in Models.js file, it's missing now.