From b6b3429b62093eb9aa6d16ba7d341d070ee967ce Mon Sep 17 00:00:00 2001 From: Axel-CH Date: Sun, 23 Mar 2025 14:44:30 -0400 Subject: [PATCH] chore: remove _pause handler to use already existing _stopentry handler --- freqtrade/rpc/telegram.py | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/freqtrade/rpc/telegram.py b/freqtrade/rpc/telegram.py index 3f1c70a6c..36b873178 100644 --- a/freqtrade/rpc/telegram.py +++ b/freqtrade/rpc/telegram.py @@ -1245,18 +1245,6 @@ class Telegram(RPCHandler): msg = self._rpc._rpc_start() await self._send_msg(f"Status: `{msg['status']}`") - @authorized_only - async def _pause(self, update: Update, context: CallbackContext) -> None: - """ - Handler for /pause. - pauses entry positions on TradeThread - :param bot: telegram bot - :param update: message update - :return: None - """ - msg = self._rpc._rpc_stopentry() - await self._send_msg(f"Status: `{msg['status']}`") - @authorized_only async def _stop(self, update: Update, context: CallbackContext) -> None: """ @@ -1284,7 +1272,7 @@ class Telegram(RPCHandler): @authorized_only async def _stopentry(self, update: Update, context: CallbackContext) -> None: """ - Handler for /stop_buy. + Handler for /stop_buy /stop_entry and /pause. Sets max_open_trades to 0 and gracefully sells all open trades :param bot: telegram bot :param update: message update