func NewInlineQueryResultPhoto(photoURL, thumbURL string) (newPhoto *InlineQueryResultPhoto, generatedID *string) {
	if id, err := newUUID(); err == nil {
		return &InlineQueryResultPhoto{
			InlineQueryResult: InlineQueryResult{
				Type: InlineQueryResultTypePhoto,
				ID:   id,
			},
			PhotoURL: photoURL,
			ThumbURL: thumbURL,
		}, &id
	}

	return &InlineQueryResultPhoto{}, nil
}
// NewInlineQueryResultPhoto is a helper function for generating a new InlineQueryResultPhoto
//
// Photo must be in jpeg format, < 5MB.
//
// https://core.telegram.org/bots/api#inlinequeryresultphoto
NewInlineQueryResultPhoto is a helper function for generating a new InlineQueryResultPhoto

Photo must be in jpeg format, < 5MB.

core.telegram.org/bots/api#inlinequeryresultphoto
// NewInlineQueryResultPhoto is a helper function for generating a new InlineQueryResultPhoto // // Photo must be in jpeg format < 5MB . // // https : // core . telegram . org / bots / api#inlinequeryresultphoto
func NewInlineQueryResultPhoto(photoURL, thumbURL string) (newPhoto *InlineQueryResultPhoto, generatedID *string) {
	if id, err := newUUID(); err == nil {
		return &InlineQueryResultPhoto{
			InlineQueryResult: InlineQueryResult{
				Type: InlineQueryResultTypePhoto,
				ID:   id,
			},
			PhotoURL: photoURL,
			ThumbURL: thumbURL,
		}, &id
	}
	return &InlineQueryResultPhoto{}, nil
}
func NewInlineQueryResultPhoto ( photoURL , thumbURL string ) ( newPhoto * InlineQueryResultPhoto , generatedID * string ) { if id , err := newUUID ( ) ; err == nil { return & InlineQueryResultPhoto { InlineQueryResult : InlineQueryResult { Type : InlineQueryResultTypePhoto , ID : id , } , PhotoURL : photoURL , ThumbURL : thumbURL , } , & id } return & InlineQueryResultPhoto { } , nil }
NewInlineQueryResultPhoto is a helper function for generating a new InlineQueryResultPhoto
NewInlineQueryResultPhoto is a helper function for generating a new InlineQueryResultPhoto