npm i -g @fort-protocol/telebot
or
yarn global add @fort-protocol/telebot
get some help of telebot
telebot -h
get version of telebot
telebot -V
telebot send
telebot sendmessage 'hello' chat_id1 chat_id2 -y
telebot sendphoto 'uri' chat_id1 chat_id2 --caption 'hello' -y
telebot sendvideo 'uri' chat_id1 chat_id2 --caption 'hello' -y
if chat_id from stdout, you can use xargs
like this
echo 'chat_id1 chat_id2' | xargs telebot sendmessage 'hello' -y