Answer the question
In order to leave comments, you need to log in
How to integrate WordPress website with Pyhton telegram bot?
I used on my site on WordPress to send messages to the telegram chat about new posts.
Sent like this:
https://api.telegram.org/bot<token>/sendMessage?chat_id=<id>&text=<text>&parse_mode=html
Answer the question
In order to leave comments, you need to log in
Well, a counter question: is it necessary? Wouldn't it be easier to leave the mailing list as a separate bot, and implement new functionality that is not related to the site separately?
Alternatively, you can connect the bot to the WP database, and periodically monitor for new entries, plus add your own tables for the needs of the bot.
Simply because greetings from PHP to Python are not easy to convey. In fact, there is only one option - the socket that the bot listens to and which PHP knocks on.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question