diff --git a/CHANGES/1727.doc.rst b/CHANGES/1727.doc.rst new file mode 100644 index 00000000..0f9e6222 --- /dev/null +++ b/CHANGES/1727.doc.rst @@ -0,0 +1,9 @@ +Docs: add guide "Testing your bot" (pytest examples) + +Add a new documentation page that shows how to test bot handlers with pytest +without sending real requests to the Telegram API. The guide includes: +- an echo handler example +- a callback query example + +Both examples use dummy objects (Message / CallbackQuery) so developers can +test logic in isolation. diff --git a/newsfragments/1727.docs.rst b/newsfragments/1727.docs.rst deleted file mode 100644 index 5723b621..00000000 --- a/newsfragments/1727.docs.rst +++ /dev/null @@ -1 +0,0 @@ -Added a new guide on testing bots with pytest examples.