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

Method stop_bot

telebot/__init__.py:1381–1387  ·  view source on GitHub ↗

Stops bot by stopping polling and closing the worker pool.

(self)

Source from the content-addressed store, hash-verified

1379
1380
1381 def stop_bot(self):
1382 """
1383 Stops bot by stopping polling and closing the worker pool.
1384 """
1385 self.stop_polling()
1386 if self.threaded and self.worker_pool:
1387 self.worker_pool.close()
1388
1389
1390 def set_update_listener(self, listener: Callable):

Callers

nothing calls this directly

Calls 2

stop_pollingMethod · 0.95
closeMethod · 0.45

Tested by

no test coverage detected