gram-js / gramjs

NodeJS/Browser MTProto API Telegram client library,
MIT License
1.33k stars 182 forks source link

Could the browser version be made to work with cloudlfare workers ? #506

Closed divyam234 closed 1 year ago

divyam234 commented 1 year ago

I tried using the browser module in cf workers.Although the code successfully started by the workers bu it didn't respond to any calls whenever I called client.connect().It was also making the socket connection to telegram server

painor commented 1 year ago

I haven't worked with cloudflare workers before, is it similar to AWS ? if you want to listen to incoming events the app needs to be running 24/7

divyam234 commented 1 year ago

Yeah its like aws lambda serverless platform.But its support all web apis that currently runs in browser.

painor commented 1 year ago

I really got no idea sadly; maybe someone else with better experience sees it.

phongplus commented 7 months ago

someone is success run in cloudflare workers ?