const baseApiUrl = 'https://api.telegram.org';
function _buildURL(token, name, text) {
return `${baseApiUrl}/bot${token}/sendMessage?chat_id=${name}&text=${text}`;
}
function sendMessage(token, name, text) {
fetch(_buildURL(token, name, text))
.then(console.log)
.catch(console.log);
}
const ivan = 257271396;
const denis = 233333258;