Closed CodingFu closed 1 week ago
@telegram-apps/sdk
and @telegram-apps/sdk-react
simultaneously. Only @telegram-apps/sdk-react
should be specified in dependencies listinit
function:
import { init, $version, cloudStorage } from "@telegram-apps/sdk-react"
init(); console.log($version()); cloudStorage.setItem('foo', 'bar');
Thanks for your response. This worked!
Platform
Select platforms where this bug is reproducible:
Describe the bug
A clear and concise description of what the bug is.
We used to rely on cloudStorage in v1.x of @telegram-apps/sdk
After upgrading to v2 it claims it's not supported even though telegram mini app version from
retrieveLaunchParams()
says we are at7.10
To Reproduce
Expected behavior
Cloud storage should be supported (it worked just fine before we upgraded to v2)