// Telegram addon disabled (telegram package not installed)

const activeClients = new Map();
const pendingClients = new Map();

async function initTele() {}
async function cleanupTele() {}
function checkTelePlugin() { return false; }
async function checkTele() { return false; }
async function processTelegramInbox() {}
async function createSession(req, res) { res && res.json({ success: false, msg: "Telegram addon not available" }); }
async function verifyCode(req, res) { res && res.json({ success: false, msg: "Telegram addon not available" }); }
async function getUserSessions(req, res) { res && res.json({ success: true, data: [] }); }
async function getSessionStatus(req, res) { res && res.json({ success: true, data: null }); }
async function connectSession(req, res) { res && res.json({ success: false, msg: "Telegram addon not available" }); }
async function disconnectSession(req, res) { res && res.json({ success: false, msg: "Telegram addon not available" }); }
async function deleteSession(req, res) { res && res.json({ success: false, msg: "Telegram addon not available" }); }
async function getChats(req, res) { res && res.json({ success: true, data: [] }); }
async function sendMessage(req, res) { res && res.json({ success: false, msg: "Telegram addon not available" }); }

module.exports = {
  initTele,
  cleanupTele,
  checkTelePlugin,
  checkTele,
  processTelegramInbox,
  createSession,
  verifyCode,
  getUserSessions,
  getSessionStatus,
  connectSession,
  disconnectSession,
  deleteSession,
  getChats,
  sendMessage,
  activeClients,
  pendingClients,
};
