This module is depends on gramjs (MIT License). Please click this link to open examples from the editor.
Please specify the version to avoid breaking changes.
Blackprint.loadModuleFromURL([
'https://cdn.jsdelivr.net/npm/@blackprint/[email protected]/dist/nodes-telegram.mjs'
], {
// Turn this on if you want to load .sf.js, and .sf.css
// only with single .mjs
loadBrowserInterface: true // set to "false" for Node.js/Deno
});You can use this link to load unpublished nodes and still under development on GitHub. https://cdn.jsdelivr.net/gh/Blackprint/nodes-telegram@dist/nodes-telegram.mjs
Replace dist with your latest commit hash (from dist branch) to avoid cache from CDN.
Because the telegram library doesn't include the bundled version for browser, we need to bundle it manually with:
$ cd ./gramjs
$ git pull
$ pnpm i
$ cd ..
$ npm run build-gramjsAfter that you will find the bundled .js in ./gramjs/browser/telegram.js
MIT