How to set up Telegram

Forum Home Forums Communicating with Devices How to set up Telegram

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #7332
    Krzysztof
    Participant

    Hello. 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 3 years, 6 months ago by Mikhail.
    #7337
    Mikhail
    Moderator

    Hi,

    Write to the bot:
    /info

    If it doesn’t answer, check the communication line log in Communicator.

    #10017
    Hennie_Kotze
    Participant

    Good 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 / 0

    2022-01-27 06:44:13 Command to the Device 3 “TELEGRAM”, type: KpTelegram
    Subscription with name telegram test group is missing

    Any Idea what I’m doing wrong here?

    Regerds,

    #10018
    Hennie_Kotze
    Participant

    Ok 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,

    #10019
    Mikhail
    Moderator

    I’m glad that the issue is solved 🙂
    The above information may be useful for others. Thank you.

    #12979
    Keano
    Participant

    Good 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.

    #12981
    Mikhail
    Moderator

    Hello,

    Please provide a link to a screenshot of the device settings in Communicator.

    #13022
    Keano
    Participant

    Hi 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.

    #13023
    Mikhail
    Moderator

    Hello,

    If the last question is about Automatic Control Module, please ask in a proper topic. This topic is about Telegram driver.

    #13125
    Keano
    Participant

    Hi

    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.

    #13128
    Mikhail
    Moderator

    Hi,

    Replied here.

Viewing 11 posts - 1 through 11 (of 11 total)
  • You must be logged in to reply to this topic.