telegram bot message get update real time

  php, real-time, telegram-bot, websocket

I have a telegram bot wrote in php that display binance api data to user after choose the symbol like BTC :
1- user choose the symbol
2- bot get data from binance api using curl over https and retuen data to user as a bot message

now I need this message be real time , I mean without any user command this message data update
just like the website:
www.binance.com

this site uses websocket , call websocket api in javasceipt

the binance has webscoket api too but I don’t know how to use it in telegram bot,
is it possible??

Source: Ask PHP

LEAVE A COMMENT