From 2fae5ba8fb5363090203a36ce9db60ebc23f6e7f Mon Sep 17 00:00:00 2001 From: Vlad Date: Sat, 4 Oct 2025 11:18:10 +0500 Subject: [PATCH] chore: add changelog fragment 1727.docs.rst --- newsfragments/1727.docs.rst | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 newsfragments/1727.docs.rst diff --git a/newsfragments/1727.docs.rst b/newsfragments/1727.docs.rst new file mode 100644 index 00000000..0f9e6222 --- /dev/null +++ b/newsfragments/1727.docs.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.