upload_theme()

async Client.upload_theme()

Upload a theme file with platform-specific colors.

Usable by Users Bots
Parameters:
  • file (InputFile) – Previously uploaded theme file with platform-specific colors for UI components.

  • file_name (str) – File name.

  • mime_type (str) – MIME type, must be application/x-tgtheme-{format}, where format depends on the client.

  • thumb (InputFile, optional) – Thumbnail.

Returns:

Document – On success, the document is returned.