Forum Home › Forums › Communicating with Devices › How to set up Telegram
Tagged: Automatic Control Module, kptelegram, subscription, Telegram
- This topic has 10 replies, 4 voices, and was last updated 1 year, 9 months ago by
Mikhail.
-
AuthorPosts
-
September 30, 2020 at 6:38 pm #7332
Krzysztof
ParticipantHello. I have a problem with Telegram. I installed the application, configured my own bot’a started a group, the bot joined the group but does not respond to my inquiries / info. Should the bot be configured somehow? I understand that the password we create in RapidScada, but why it is to be used? How can I check the chat ID? In Log driver I get a time out message, can this be affected by the proxy?
-
This topic was modified 4 years, 7 months ago by
Mikhail.
October 1, 2020 at 10:11 am #7337Mikhail
ModeratorHi,
Write to the bot:
/infoIf it doesn’t answer, check the communication line log in Communicator.
January 27, 2022 at 4:48 am #10017Hennie_Kotze
ParticipantGood Day,
If I may jump into this thread… I think my query is related…
1. I installed telegram and completed the setup.
2. I created the new bot, and added it to a new group
3. I received a bot token
4. I registered the driver
5. Received ID and Chat number using the messenger, then added that to the device configuration form
6. Created input and output channels for the device
7. upload configuration and restart services
8. Line state is running normal.Current device tags data
+——–+——————–+——-+———+
| Signal | Name | Value | Channel |
+——–+——————–+——-+———+
| 1 | Sent notifications | 0 | 301 |
+——–+——————–+——-+———+
| 2 | Subscription mode | Off | 302 |
+——–+——————–+——-+———+LINE LOG:
2022-01-27 06:34:46 Communication session with the Device 3 “TELEGRAM”, type: KpTelegram
Send request:
https://api.telegram.org/bot5130888050:AAHJ2DkMmBBclVW7nQ69YFM30SUpD2zOI5Y/getUpdates?offset=7504815&timeout=5&allowed_updates=message
Received response:
{“ok”:true,”result”:[]}9. I can send a standard command 2 with value 1, and then the subscription mode changes to “ON”. However, I dont know if this is correct, because the manual says this step is obsolete.
10. If I send a binary command stating the chat group name and the text ( <Chat group Name> ; Hello World ), then the commands show an error for each command I try to send.
Comm. sessions (total / errors) : 547 / 0
Commands (total / errors) : 2 / 1
Requests (total / errors) : 548 / 02022-01-27 06:44:13 Command to the Device 3 “TELEGRAM”, type: KpTelegram
Subscription with name telegram test group is missingAny Idea what I’m doing wrong here?
Regerds,
January 27, 2022 at 5:20 am #10018Hennie_Kotze
ParticipantOk It seems like I figured it out…
When I get ID and name of the chat, it was my ID and Chat with the bot itself.
Once I added the bot to the group, I had to subscribe to the group as well.
I sent a command 2 with value 1 from the device in the communicator, and the subscription mode went to “on”. I then sent /START <Password> from my phone to the GROUP, not the bot… The group then added my subscription, and VOILA!!
Regards,
January 27, 2022 at 12:12 pm #10019Mikhail
ModeratorI’m glad that the issue is solved 🙂
The above information may be useful for others. Thank you.July 10, 2023 at 3:13 pm #12979Keano
ParticipantGood Afternoon I am encountering the same issue as the person above. I get the following error. “2023-07-10 17:13:03 Communication session with the Device 1 “Telegram Bot”, type: KpTelegram
Send request:
https://api.telegram.org/bot6360611251:AAHMbs73bPeHHluELcDKCT7pxLyPlmSMZfA/getUpdates?offset=0&timeout=0&allowed_updates=message
Error executing request: The operation has timed out
”I went and made sure that everything is setup according to your guide but it is still not working.
July 11, 2023 at 12:14 pm #12981Mikhail
ModeratorHello,
Please provide a link to a screenshot of the device settings in Communicator.
July 21, 2023 at 9:45 am #13022Keano
ParticipantHi I seem to be getting this problem in my automatic control module logs.
Sending commands skipped
Why does this happen and how can I solve it.July 21, 2023 at 10:33 am #13023Mikhail
ModeratorHello,
If the last question is about Automatic Control Module, please ask in a proper topic. This topic is about Telegram driver.
August 1, 2023 at 7:10 am #13125Keano
ParticipantHi
I was wondering if it is possible to write commands from telegram to rapid for example if I click a button appearing under my notification on telegram it would send a command back to rapid scada and trigger something.
August 1, 2023 at 8:51 am #13128 -
This topic was modified 4 years, 7 months ago by
-
AuthorPosts
- You must be logged in to reply to this topic.