Yes but you should consider using text files whenever the rule contents gets more complicated then a couple of lines. Please don’t take snapshots but copy/type the code.
That’s exactly what you specified: if you send “Hello”, the bot answers with a static string.
So it IS working, isn’t it.
Screen shots are basically unreadable and showing just the list of Items is rarely going to be sufficient.
We potentially need to see all the settings on each of those Items. As it is that teeny tiny screen shot is illegible. I couldn’t even tell you the names of your Items.
Again, screen shots are next to worthless. You found the code tab so why not paste the text here so it can be read?
Is the rule triggering at all? What is the LastMessateText Item linked to? What’s it’s state? Is it changing to that state with a Command or an Update? What is the TelegramBotPatrick linked to? What happens if you command it outside the rule?
Your approach will not work because “TelegramBotPatrick” is a Group Item (as per your second screenshot) and not your Telegram Bot.
As per your first screenshot your Bot is this “telegram:telegramBot:2999fd19f4” and there should be somwhere a chat ID also!
You can use this Code ,
If you are working in the UI, all of the supported events are presented when you create the trigger. So if you select Item Event, pick the Item you will be given a form to fill out to indicate what type of event and other related information (e.g. like what state it changed from and to). You could create one of each type to see what they turn into in the YAML, but you don’t really need to know that type of stuff. That’s kind of the point of the UI. You don’t need to know that selecting Item Event -> some Item -> receives an event translates to core.ItemStateUpdate in the YAML.
But you do need to know the different between an update, command, and change event so that you select the right one. You can look at Rules | openHAB. Anything in that section can be selected as a trigger for the rule in the UI.