select c.color_id, c.color_name,
count(p.product_id) as total,
count(case when c.color_name = 'red' then 1 end) as red_cnt
from color as c
left join product as p on c.color_id = p.color_id
group by c.color_id, c.color_name;
https://api.telegram.org/bot[ТОКЕН_БОТА]/sendMessage?chat_id=@[USERNAME_КАНАЛА]&text=тест
. После перехода по ссылке будет выведен id канала, сохрани его. https://api.telegram.org/bot[ТОКЕН_БОТА]/sendMessage?chat_id=@[ID_КАНАЛА]&text=тест.