spkesDE / com.spkes.telegramNotifications

GNU General Public License v3.0
4 stars 4 forks source link

Enable inline queries as new Flow Triggers #28

Open enyineer opened 1 year ago

enyineer commented 1 year ago

[https://grammy.dev/plugins/inline-query.html](Inline Queries) can be a useful tool to use the bot outside of Chats it has been added to.

Requirements:

  1. Only registered users (that have registered with the bot) should be allowed to use the inline queries
  2. Inline queries must be added via some kind of "wizard" workflow as the bot can't react to the creation of a Flow Card (@spkesDE please correct me if I'm wrong) for example by assigning them an ID and then later referencing that Inline Query ID in a flow (with autocompletion for the Queries that have been added)

For example: A user wants to add an inline query for a device in their Homey network. The user would like to change eg. the dimming value by using the following inline query: @nameofbot lamp1 80