shady2k / logseq-inbox-telegram-plugin

MIT License
78 stars 5 forks source link

Does not receive anything #28

Closed zerone01y closed 2 years ago

zerone01y commented 2 years ago

I followed the readme file and set up the configuration like below:

{
  "botToken": "my-token",
  "pollingInterval": 60000,
  "inboxName": "#inbox",
  "authorizedUsers": [],
  "addTimestamp": true,
  "invertMessagesOrder": false,
  "inboxByChat": []
}

However, I'm not able to receive anything in logseq journal after sending some text to the bot. I should mention that I once switched between two graphs, but neither of them received any messages from telegram. I noticed that an entries was added to the settings.json, after sending the messages:

  "updateId": 88218559

I also checked https://api.telegram.org/bot<token>/getUpdates, and I saw new messages immediately.

Can you help with the issue? Thanks.

shady2k commented 2 years ago

Probably you need to add your username to authorizedUsers array.

zerone01y commented 2 years ago

An update: I can now receive the messages in Logseq.

I didn't change the settings but found that I need to restart logseq. (I deactivated the plugin and activated it but it was not effective).