This is simple plugin that get new messages from Telegram bot and paste its to daily journal.
/newbot
. After you choose title, BotFaher give you the token. botToken
authorizedUsers
array, because your recently created bot is publicly findable and other peoples may send messages to your bot. For example "authorizedUsers": ["your_username"]
. If you leave this array empty - all messages from all users will be processed!pollingInterval
in milliseconds. This interval will be used to get new messages from Telegram botinboxName
property. Replace it in case of necessary. If you don't want to group messages, set inboxName
property to null
. In this case messages will be inserted directly into page block.addTimestamp
is set to true, message received time in format HH:mm
will be added to message text, for example 21:13 - Test message
useActiveGraph
is set to true, all messages will be processed in the currently active graph. If useActiveGraph
is set to false, messages will be processed only if the botTargetGraph
graph name is equal to the currently active graph. If the botTargetGraph
is not equal to the current graph, the plugin will skip processing and your messages will be processed when you switch back to the required graph./start
commandSettings with grouping:
{
"disabled": false,
"botToken": "PASTE_BOT_TOKEN_HERE",
"authorizedUsers": [],
"useActiveGraph": true,
"addTimestamp": false,
"pollingInterval": 60000,
"inboxName": "#inbox",
"inboxByChat": []
}
Set inboxName
with null
if you don't want use groups:
{
"inboxName": null
}
For example you want to collect random thoughts as #spark
and other thoughts as #plans
.
/setprivacy
command and set it to DISABLED
/setjoingroups
it will be ENABLED
inboxByChat
will be added new object
"inboxByChat": [
{
"chatId": -111111111,
"inboxName": "#spark"
}
]
inboxName
in this object to #spark
for example#spark
tag"inboxByChat": [
{
"chatId": -111111111,
"inboxName": "#spark"
},
{
"chatId": -222222222,
"inboxName": "#plans"
}
]
yarn && yarn build
in terminal to install dependencies.Load unpacked plugin
in Logseq Desktop client.MIT