Document

Note that the Document data type falls under the Message data type.

Document

This object represents a general file (as opposed to photos, voice messages, and audio files).

FieldTypeRequiredDescription
idStringYesUnique identifier for this file
nameIntegerOptionalDocument name as defined by Sender.
sizeIntegerYesDocument file size.