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

Method __hide_token

telebot/async_telebot.py:408–413  ·  view source on GitHub ↗
(self, message: str)

Source from the content-addressed store, hash-verified

406 return handled
407
408 def __hide_token(self, message: str) -> str:
409 if self.token in message:
410 code = self.token.split(':')[1]
411 return message.replace(code, "*" * len(code))
412 else:
413 return message
414
415 async def _handle_error_interval(self, error_interval: float):
416 logger.debug('Waiting for %s seconds before retrying', error_interval)

Callers 2

infinity_pollingMethod · 0.95
_process_pollingMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected