This WordPress plugin will automatically generate and set, out of the box, a working endpoint for the Telegram bot @publishareBot.
Official plugin page: https://wordpress.org/plugins/publisharebot-api-endpoint
To get more info about the service and the project, just visit the official website.