[docs]classBackgroundType(Type_):""" This object describes the type of a background. Currently, it can be one of BackgroundTypeFill BackgroundTypeWallpaper BackgroundTypePattern BackgroundTypeChatTheme Telegram documentation: https://core.telegram.org/bots/api#backgroundtype :return: Instance of the class :rtype: :class:`BackgroundTypeFill` or :class:`BackgroundTypeWallpaper` or :class:`BackgroundTypePattern` or :class:`BackgroundTypeChatTheme` """@staticmethoddef_parse(me:"tgram.TgBot"=None,d:dict=None,force:bool=None)->Optional[Union["tgram.types.BackgroundTypeFill","tgram.types.BackgroundTypeWallpaper","tgram.types.BackgroundTypePattern","tgram.types.BackgroundTypeChatTheme",]]:return(Noneifnotdelsetgram.types.BackgroundTypeFill._parse(me,d,force)ifd["type"]=="fill"elsetgram.types.BackgroundTypeWallpaper._parse(me,d,force)ifd["type"]=="wallpaper"elsetgram.types.BackgroundTypePattern._parse(me,d,force)ifd["type"]=="pattern"elsetgram.types.BackgroundTypeChatTheme._parse(me,d,force))