Hello,
Thank you for your extremely quick feedback.
This time, I created a new bot and redid the procedure to be sure. To no avail.
So, I don’t know what to do.
I will check the ID via @userinfobot tonight.
But is there a way to modify it manually?
Thank you
Best regards,
Lionel
I have checked that the ID given in the error message is indeed mine.
So I understand that it is the telegram/gladys synchronization that is causing the problem.
When initializing, I downloaded Telegram on my PC. It offered me to scan a QR code with my phone, which I did.
I created my bot, entered the API key in Gladys, clicked on the link generation and clicked on send message.
It is possible that I missed something even if I think I did things right.
Still, I am stuck without much idea of how to solve this problem …
It seems fine to me. Out of curiosity, which Telegram application do you use when you click on « send message »?
When you send the first message, does Gladys reply with a « 👋 » message? Do you have any special logs?
What we don’t see during initialization is that when you are redirected to Telegram with the link generated from Gladys, a special token is added. When you send the /start message, the token is then sent in your startup message. It’s not just a message containing /start (Telegram hides the token), and Gladys then uses it to link your Gladys account to your Telegram account.
So it is very important to open the link on the same device where Telegram is installed. Is that what you are doing?
Hello,
Thank you again for the quick responses. I tried to read a bit of the Telegram API documentation yesterday to better understand, but I quickly got lost .
During the two bot creations, I did get the handshake .
I first tried to exchange with Telegram on PC (following the page opening during initialization) and then via the phone.
I will try again tonight by creating a new bot and a new API key.
In the meantime, I read that Telegram has updates. Notably on the authentication side. But I don’t know if this has any impact.
Thank you
Lionel
Same error message:
2022-01-11T22:47:04+0100 index.js:16 (process.) NotFoundError: User with telegram_user_id « xxxxxxxxxx » not found
at User.getByTelegramUserId (/src/server/lib/user/user.getByTelegramUserId.js:33:11)
at async MessageHandler.newMessage (/src/server/services/telegram/lib/message.new.js:26:16)
Added support for spoiler entities, which will work in Telegram versions released after December 30, 2021. Older clients will display unsupported message.
Go to the Telegram integration page, and copy-paste the link to Telegram, it should look like this:
https://telegram.me/NOM_DE_TON_BOT?start=UNE_CLE
Copy-paste the key at the end, and send this message to Gladys via your Telegram:
/start UNE_CLE
This should redo the linking…
After that, I’m not sure this will improve the situation, because from what I see, you already have the emoji which means Gladys is able to do the link.
Other possibility, try to restart your Gladys instance, by doing in SSH:
@pierre-gilles thanks for the tips.
I did get the handshake but still no response from Gladys.
I still receive the same message in the logs even after a docker restart
NotFoundError: User with telegram_user_id « 508xxxxxx59 » not found
at User.getByTelegramUserId (/src/server/lib/user/user.getByTelegramUserId.js:33:11)
at async MessageHandler.newMessage (/src/server/services/telegram/lib/message.new.js:26:16)
}
2022-01-12T21:46:57+0100 index.js:16 (process.) NotFoundError: User with telegram_user_id « 508xxxxxx59 » not found
at User.getByTelegramUserId (/src/server/lib/user/user.getByTelegramUserId.js:33:11)
at async MessageHandler.newMessage (/src/server/services/telegram/lib/message.new.js:26:16)
2022-01-12T21:47:12+0100 index.js:15 (process.) unhandledRejection catched: Promise {
NotFoundError: User with telegram_user_id « 508xxxxxx59 » not found
at User.getByTelegramUserId (/src/server/lib/user/user.getByTelegramUserId.js:33:11)
at async MessageHandler.newMessage (/src/server/services/telegram/lib/message.new.js:26:16)
}
2022-01-12T21:47:12+0100 index.js:16 (process.) NotFoundError: User with telegram_user_id « 508xxxxxx59 » not found
at User.getByTelegramUserId (/src/server/lib/user/user.getByTelegramUserId.js:33:11)
at async MessageHandler.newMessage (/src/server/services/telegram/lib/message.new.js:26:16)
2022-01-12T21:48:06+0100 index.js:19 (Object.start) Starting Telegram service
Hello, @pierre-gilles thank you for taking the time to study the problem.
I followed your instructions. I connected via FTP to retrieve the file and open it with TablePlus.
The advantage of all this is that I’m learning a lot of things
Screenshot attached.
The ID is correct except for the .0 at the end
Could this be the cause?
Thank you
Lionel