NodeJs: https://nodejs.org/en/
Telegraf: https://github.com/telegraf/telegraf
Johnny-Five: http://johnny-five.io/
StandardFirmata used in arduino... Paste token of the bot in the second line...
Commands for install
npm install telegraf
npm install johnny-five
If you do not have Package.json use
npm init -y
Install telegraf and johnny five in the same folder of server.js.
Youtube: https://youtu.be/yhmgrT-H2Ck