Closed noadminonly closed 1 year ago
Try this: Write BotFather /setprivacy command and set it to DISABLED
Hello I did this
BotFather, [04.01.23 16:31] 'Enable' - your bot will only receive messages that either start with the '/' symbol or mention the bot by username. 'Disable' - your bot will receive all messages that people send to groups. Current status is: ENABLED
XXX, [04.01.23 16:32] Disable
BotFather, [04.01.23 16:32] Success! The new status is: DISABLED. /help
I restartet logseq and send some telegramm-Messages but nothing happens...
Try this: Write BotFather /setprivacy command and set it to DISABLED
Recently it cannot works. I tried this, it don't works either. logseq version:0.8.15
By default, it fetches new messages once after 3 seconds of the plugin starting and then every minute. Can you post the json settings of your plugin here? Don't forget to replace bot token with some other text.
-- | -- botToken | bot-token.... pollingInterval | 60000 inboxName | "#inbox" authorizedUsers | [] addTimestamp | false invertMessagesOrder | false inboxByChat | [] isDebug | false disabled | false
No, that's not what I asked for. Go to the plugin settings, and in the top right corner, you will see a link labeled "Edit settings.json". Click on it and you will be able to view the plugin settings. Please paste them here.
If i do like you describe I get this entrys
{ "botToken": "Her ist my bot token", "pollingInterval": 60000, "inboxName": "#inbox", "authorizedUsers": [], "addTimestamp": false, "invertMessagesOrder": false, "inboxByChat": [], "isDebug": false, "disabled": false }
It seems correct. Let's do following steps:
Ctrl + Shift + I
to open developer consoleI hope this is helps:
it starts with some entrys:
api.telegram.org/bot5627263008: XX Bot -Token XX /getUpdates:1 Failed to load resource:
an dann ...
Failed to load resource: net::ERR_NETWORK_CHANGED d resource: net::ERR_NETWORK_CHANGED index.1ca59d04.js:1 [Inbox Telegram] Started! index.1ca59d04.js:1 [Inbox Telegram] Polling started! index.1ca59d04.js:1 Processing index.1ca59d04.js:1 {messages: Array(0)} index.1ca59d04.js:1 [Inbox Telegram] Started! index.1ca59d04.js:1 [Inbox Telegram] Polling started! index.1ca59d04.js:1 Processing index.1ca59d04.js:1 {messages: Array(0)}messages: [][[Prototype]]: Object index.1ca59d04.js:1 Processing index.1ca59d04.js:1 {messages: Array(0)}messages: Array(0)[[Prototype]]: Object index.1ca59d04.js:1 Processing index.1ca59d04.js:1 {messages: Array(0)} instrument.js:191 D:Search > Transact pages!: logseqlocal/Users/uwe/Library/Mobile Documents/iCloud~com~logseq~logseq/Documents/Logseq_First_Database index.1ca59d04.js:1 [Inbox Telegram] Started! index.1ca59d04.js:1 [Inbox Telegram] Polling started! index.1ca59d04.js:1 Processing index.1ca59d04.js:1 {messages: Array(0)}messages: [][[Prototype]]: Objectconstructor: ƒ Object()hasOwnProperty: ƒ hasOwnProperty()isPrototypeOf: ƒ isPrototypeOf()propertyIsEnumerable: ƒ propertyIsEnumerable()toLocaleString: ƒ toLocaleString()toString: ƒ toString()valueOf: ƒ valueOf()defineGetter: ƒ defineGetter()defineSetter: ƒ defineSetter()lookupGetter: ƒ lookupGetter()lookupSetter: ƒ lookupSetter()proto: (...)get proto: ƒ proto()set proto: ƒ proto() index.1ca59d04.js:1 Processing index.1ca59d04.js:1 {messages: Array(0)}messages: [][[Prototype]]: Objectconstructor: ƒ Object()hasOwnProperty: ƒ hasOwnProperty()isPrototypeOf: ƒ isPrototypeOf()propertyIsEnumerable: ƒ propertyIsEnumerable()toLocaleString: ƒ toLocaleString()toString: ƒ toString()valueOf: ƒ valueOf()defineGetter: ƒ defineGetter()defineSetter: ƒ defineSetter()lookupGetter: ƒ lookupGetter()lookupSetter: ƒ lookupSetter()proto: (...)get proto: ƒ proto()set proto: ƒ proto()
It seems that no new messages in your bot chat.
Thats strange. I start the Bot and send several Test [messages....]()
I'm having the same problem. I see it polling but the messages array is always empty.
Very strange. Try to open this link in your browser https://api.telegram.org/bot${botToken}/getUpdates
, replace ${botToken} with you bot token. Can you see any messages?
After i set my bot token.
ok | false -- | -- error_code | 404 description | "Not Found"@shady2k I get:
{"ok":true,"result":[]}
But if I send a message, then reload, I do see it:
{"ok":true,"result":[{"update_id":4688632,
"message":{"message_id":34,"from":{"id":5915182488,"is_bot":false,"first_name":"Andy","last_name":"Waite","language_code":"en"},"chat":{"id":5915182488,"first_name":"Andy","last_name":"Waite","type":"private"},"date":1673217985,"text":"hello world"}}]}
(then when I refresh it shows an empty array again).
I met the same problem. Sending messages directly to the bot is not working. Then I added the bot in a private channel and set as admin. Now it works perfectly. Hope it helps.
That sounds interesting. Can you explain/describe how you did that
added the bot in a private channel and set as admin.
Thanks
Just create a channel and add your bot
Thanks for the tip, that works for me too, so that completes the process for me.
Actually, you can't do anything wrong when configuring the plug-in. I entered the bot token, restarted the plugin in logseq (and then logseq itself). Then the bot was started. When I send a message now, nothing arrives in logseq. The desktop app is running. Any idea what is going wrong?