inline - Xevib/osmbot GitHub Wiki
How to use OSMbot inline
Description
With inline bot, you can send queries to OSMbot in any private chats and groups. You can see more info in «Inline bots» in Telegram webpage.
How to use
In any private chats or groups, you can type:
@OSMbot
Now, will appear the text:
@OSMbot Search location in OSM
And a list of results appears over the text box. When you begin to type, the list is updated automatically. When you see the result that you want in the list, you can press over it, and you will receive a message with info in private chat or group. This message show the same info that /details command.
Screenshots
How it works
You can see the answer for this command in the file inline_article.md in the code. Templates are made with Jinja2 (The Python Template Engine), you can see how to use templates in Template Designer Documentation.