From 5ead6658fc097fd60aafeee1a211f8d7dbae28b9 Mon Sep 17 00:00:00 2001 From: Cedric Hoelzl Date: Mon, 21 Oct 2019 14:37:19 +0200 Subject: [PATCH] Coded --- config.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config.js b/config.js index 2d29fce..94def32 100644 --- a/config.js +++ b/config.js @@ -138,7 +138,7 @@ module.exports = function(arr){ }); }, action : (bot,event,message)=>{ - var kb = gen_kb(bot,this.arr,bot.master.lang); + var kb = gen_kb(bot,this.arr,event.master.lang); return event.reply("Select An Option", {"reply_markup":Markup.inlineKeyboard(kb),"parse_mode":"Markdown"}); } @@ -160,7 +160,7 @@ module.exports = function(arr){ if(data != "") arr = data.split("_"); - let kb = gen_kb(bot,arr,bot.master.lang); + let kb = gen_kb(bot,arr,event.master.lang); return event.editMessageText("Select An Option", {"reply_markup":Markup.inlineKeyboard(kb),"parse_mode":"Markdown"}); }