telegram-bot icon indicating copy to clipboard operation
telegram-bot copied to clipboard

Support sidevm runtime

Open kvinwang opened this issue 3 years ago • 1 comments

This PR adds support running telegram-bot under Phala network's sidevm environment.

The sidevm is a smart contract platform where tokio runtime is not available and it provides a sidevm runtime instead.

kvinwang avatar Aug 05 '22 03:08 kvinwang

To add some background, this is an effort to make telegram-rs usabe in a wasm cloud runtime.

SideVM is a WASM-based serverless runtime on a decentralized cloud computing network, Phala Network. This PR will enable developer to deploy telegram-rs bots on Phala cloud. SideVM programs are compiled to standard WASM. However, compared with WASI, it additionally provides a socket implementation (since WASI doesn't have the full socket support). So we can provide the full network support to the developer, with all the common libraries like tokio, Hyper, etc.

We would sincerely request the team to review and give feedback to this PR. Not only because it's an attempt to enable writing bots in WASM, but also a few teams really want to build their telegram bots on decentralized cloud.

h4x3rotab avatar Aug 05 '22 05:08 h4x3rotab