API Reference

sendPhoto

Use this method to send photos. On success, the sent message is returned.

๐Ÿ“˜

Bots can currently send photo files of up to 20 MB in size, this limit may be changed in the future.

FieldTypeRequiredDescription
methodStringYes"sendPhoto"
chat_idStringYesUnique identifier for the target chat or User_id
photoStringYesPhoto to send. Pass a file_id as String to send a photo that exists on the nandbox servers.
captionStringOptional"Photo caption 0-256 characters
disable_web_page_previewBooleanOptionalDisables link previews for links in this message
disable_notificationBooleanOptionalSends the message silently. Users will receive a notification with no sound.
reply_to_message_idStringOptionalIf the message is a reply, unique identification for the original (parent) message.
referenceLongYesUnique local identifier for the target chat/user
to_user_idStringOptionalif reply or send message to target user within a group chat or channel, unique identifier of the target user.
echoIntegerOptional1= repeat message 0= no echo
menu_refStringOptionalMenu reference for existing predefined Menu. The menu will be displayed as inline menu associated to the message.
inline_menuArray of MenuOptionalInline menu object to hold menus.If both inline_menu and menu_ref are defined. Priority for inline_menu.
chat_settingsIntegerOptional1= if you want to send to bot chat settings
Body Params
string
required
Defaults to sendPhoto
string
required
Defaults to 12547774103695899
int64
required
Defaults to 4458716963254
string
required
Defaults to f3b0f1e475e5eebf9c320c1231767f3476210a24c04285132cae083494a65468.jpg
string
Defaults to Taste of life
int32
Defaults to 5
Response

Language
Request
Choose an example:
application/json