Stores a number of InputFile instances based on the data they contain, ideally with constant-time lookup
Registers a transformer function that adds instances to the cache, and stores the resulting file identifier(s) once the upload has completed
Upon cache hit, the InputFile instance in the payload is replaced by the file identifier received previously if and only if the respective API method permits this according to the specs
A cache library, Which uses caching system for InputFile. For example:
When i call it twice i want the second to be fast. Idk if i've elaborated it well
Originally posted by @OfficialCodinary in https://github.com/grammyjs/grammY/issues/110#issuecomment-1881466606