Provides Telegram post widget for the Editor.js.
Get the package
npm i --save editorjs-telegram-post
Include module at your application
import TelegramPost from 'editorjs-telegram-post';
Add a new Tool to the tools
property of the Editor.js initial config.
var editor = EditorJS({
...
tools: {
...
telegramPost: TelegramPost,
},
...
});
Field | Type | Description |
---|---|---|
channelName | string |
telegram channel name |
messageId | number |
message id of post in telegram channel |
{
"type": "telegramPost",
"data": {
"channelName": "telegram",
"messageId": 236
}
}