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

Method __hide_token

telebot/__init__.py:1081–1086  ·  view source on GitHub ↗
(self, message: str)

Source from the content-addressed store, hash-verified

1079 self.event_observer.start()
1080
1081 def __hide_token(self, message: str) -> str:
1082 if self.token in message:
1083 code = self.token.split(':')[1]
1084 return message.replace(code, "*" * len(code))
1085 else:
1086 return message
1087
1088 def infinity_polling(self, timeout: Optional[int]=20, skip_pending: Optional[bool]=False, long_polling_timeout: Optional[int]=20,
1089 logger_level: Optional[int]=logging.ERROR, allowed_updates: Optional[List[str]]=None,

Callers 2

infinity_pollingMethod · 0.95
__threaded_pollingMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected