@blackprint/nodes-telegram
v0.2.0
Published
Blackprint nodes for Telegram
Readme
Blackprint nodes for Telegram
This module is depends on gramjs (MIT License). Please click this link to open examples from the editor.
Import this nodes from URL
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
});Development URL
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.
Update telegram library dependency for browser
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
License
MIT
