This module instantiates a Telegram Bot, which accesses to the contents of Magnolia. Initially, this bot is designed to work with the community demo version. It only allows to search the tours and assets and also to publish pages when the user has logged in through the bot. In addition, it can be easily extended to access other workpspaces.
The module instantiates the bot on the Author server through the API Telegram Bot and accesses the contents of Magnolia through the REST API of Magnolia. Once it started, a keyboard with the different commands available will be displayed.
The following actions are allowed through keyboard commands:
Start:
Search tours:
Search assets:
Login:
Publish:
Logout:
First, we create a new bot using the Bot Father of Telegram. We generate an API key for the bot and the desired bot name. Then, we add the API key and the name that we have generated in the module configuration.
Finally, we configure the URL to access the endopoint of the Magnolia REST API.
Code licensed under MIT License.
Magnolia, https://magnolia-cms.com. Gonzalo Rodríguez Martínez, https://github.com/gonzalo-r-martinez/
This module has been developed with the help of the API developed by (https://github.com/rubenlagus) and the icon library developed by (https://github.com/vdurmont/emoji-java)