telegram-sdk-custom-mly
v1.0.4
Published
This is to be compatible with the compatibility solution that Telegram-sdk 2.0 does not support the sharemessage package.
Maintainers
Readme
@telegram-apps/sdk
This is to be compatible with the compatibility solution that Telegram-sdk 2.0 does not support the sharemessage package, ensuring that users can still use sharemessage without upgrading to 3.0.
import { postEvent, on } from "telegram-sdk-custom-mly";
try {
postEvent("web_app_send_prepared_message", {
id: res?.data?.id,
});
on("prepared_message_failed", (e) => {
console.log(e, 1111111);
resolve(false);
});
on("prepared_message_sent", (e) => {
console.log(e, 1111111);
resolve(true);
});
} catch (error) {
console.log(error, 11111);
resolve(false);
}Before you begin using the SDK, we highly recommend familiarizing yourself with the Telegram Mini Apps documentation to grasp the fundamental concepts of the platform.
