MCPcopy Create free account
hub / github.com/eternnoir/pyTelegramBotAPI / disable_save_next_step_handlers

Method disable_save_next_step_handlers

telebot/__init__.py:362–370  ·  view source on GitHub ↗

Disable saving next step handlers (by default saving disable) This function is left to keep backward compatibility whose purpose was to disable file saving capability for handlers. For the same purpose, MemoryHandlerBackend is reassigned as a new next_step_backend backend

(self)

Source from the content-addressed store, hash-verified

360
361
362 def disable_save_next_step_handlers(self):
363 """
364 Disable saving next step handlers (by default saving disable)
365
366 This function is left to keep backward compatibility whose purpose was to disable file saving capability
367 for handlers. For the same purpose, MemoryHandlerBackend is reassigned as a new next_step_backend backend
368 instead of FileHandlerBackend.
369 """
370 self.next_step_backend = MemoryHandlerBackend(self.next_step_backend.handlers)
371
372
373 def disable_save_reply_handlers(self):

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected