Telegram button clickable

Hi,
I’m new to HomeAssistant, came from Jeedom.

I wish know how to make some interactions with Telegram bot.
I succed to send message to telegram.
But I want to make something like that :
From telegram, I send some words like “weather”
HomeAssistant received this word “weather”, and callback with clickable buttons like “Home” “Work”.
If I click on Home, HomeAssistant send to telegram home weather, same for work.

Thanks for your help.

With this two automation, it’s works :

  • id: c8d4b54fc62040b98c186596a15b3535
    alias: Test telegram button
    trigger:
    condition:
    action:
  • service: notify.telegram
    data:
    title: ‘Weather:’
    message: Which address ?
    data:
    inline_keyboard:
    - Home:/home, Work:/work
  • id: 6123e17b81fd438b96b85b50b31a4439
    alias: Home weather
    description: Send home’s weather
    trigger:
  • platform: event
    event_type: telegram_callback
    event_data:
    command: /home
    action:
  • service: telegram_bot.edit_replymarkup
    data:
    message_id: “{{ trigger.event.data.message.message_id }}”
    chat_id: !secret id_telegram
    inline_keyboard:
  • service: notify.telegram
    data:
    title: Home wether
    message: Weather today at home is {{states(‘sensor.openweathermap_weather’)}}
    for {{states(‘sensor.openweathermap_forecast_temperature’)}}°C
    avec un ressenti de {{states(‘sensor.openweathermap_feels_like_temperature’)}}°C.
    initial_state: true
    mode: single