'Apps Script Searches for specific cell in spreadsheet

i made a bot for telegram using Apps script i have a spreadsheet which has a database... 3 columns 500 rows

ID , Username, Full Name

i want to make a command for tg bot like when i send /who "ID NUMBER" it looks up in the spreadsheet in first columns for that specific ID NUMBER and sends back the Full name of it

here is my apps script

var ssId = "16Rw-ilDTdozSHOn73I0fhXeaTJuixyQOp7BDDXfY9Cs";


function setWebhook() { 
  var url = telegramUrl + "/setWebhook?url=" + webAppUrl;
  var response = UrlFetchApp.fetch(url);
}

function sendMessage(id, text,) {
  var url = telegramUrl + "/sendMessage?chat_id=" + id + "&text=" + text;
  var response = UrlFetchApp.fetch(url);
}

function doPost(s) {

  var contents = JSON.parse(s.postData.contents);
  var id = contents.message.from.id;  // user ID
  var name = contents.message.from.first_name; // Sender First name
  var uname = contents.message.from.username; // Sender Username
  var text = contents.message.text; // Message Text

if (text.includes("/who")) {
    
    var result = text.substr(text.indexOf(" ") + 1);; // this line removes the first word from the Message


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source