Encodes a document or photo into a bot API file_id.
The media object (Document, Photo, etc.)
The encoded file_id string, or undefined if encoding fails
Encodes a document or photo into a bot API file_id.