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

Method disable_save_reply_handlers

telebot/__init__.py:373–381  ·  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 reply_backend backend

(self)

Source from the content-addressed store, hash-verified

371
372
373 def disable_save_reply_handlers(self):
374 """
375 Disable saving next step handlers (by default saving disable)
376
377 This function is left to keep backward compatibility whose purpose was to disable file saving capability
378 for handlers. For the same purpose, MemoryHandlerBackend is reassigned as a new reply_backend backend
379 instead of FileHandlerBackend.
380 """
381 self.reply_backend = MemoryHandlerBackend(self.reply_backend.handlers)
382
383
384 def load_next_step_handlers(self, filename="./.handler-saves/step.save", del_file_after_loading=True):

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected