Commit d8b9b5f9 authored by Ahmad Nemati's avatar Ahmad Nemati

init

parent 3c931cc8
......@@ -39,6 +39,7 @@ bot.on('callback_query', function onCallbackQuery(msg) {
});
async function processCallback(msg) {
console.log(msg)
await isAdmin(msg)
if (msg.data.startsWith("user_")) showUser(msg)
else if (msg.data.startsWith("request_")) request(msg)
......@@ -66,6 +67,7 @@ async function processCallback(msg) {
async function listuser(msg) {
let users = await db.getAllUsers()
message.listUserMessage(bot, msg, users)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment