Skip to content

utils.code

util

Convert the given text to code format

utils.code(
  text: str,
  html: bool = True,
  escape: bool = True
) → str

Source: pytdbot/utils/text_format.py