Skip to content

utils.pre_code

util

Convert the given text to pre-formatted fixed-width code block

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

Source: pytdbot/utils/text_format.py